InternalXmlHelper.AttributeValue[] Proprietà
Definizione
Importante
Alcune informazioni sono relative alla release non definitiva del prodotto, che potrebbe subire modifiche significative prima della release definitiva. Microsoft non riconosce alcuna garanzia, espressa o implicita, in merito alle informazioni qui fornite.
Ottiene o imposta il valore di un attributo XML. Questa proprietà non deve essere usata dal codice.
Overload
| Nome | Descrizione |
|---|---|
| AttributeValue[IEnumerable<XElement>, XName] |
Ottiene o imposta il valore di un attributo XML. Questa proprietà non deve essere usata dal codice. |
| AttributeValue[XElement, XName] |
Ottiene o imposta il valore di un attributo XML. Questa proprietà non deve essere usata dal codice. |
AttributeValue[IEnumerable<XElement>, XName]
Ottiene o imposta il valore di un attributo XML. Questa proprietà non deve essere usata dal codice.
public:
static property System::String ^ AttributeValue[System::Collections::Generic::IEnumerable<System::Xml::Linq::XElement ^> ^, System::Xml::Linq::XName ^] { System::String ^ get(System::Collections::Generic::IEnumerable<System::Xml::Linq::XElement ^> ^ source, System::Xml::Linq::XName ^ name); void set(System::Collections::Generic::IEnumerable<System::Xml::Linq::XElement ^> ^ source, System::Xml::Linq::XName ^ name, System::String ^ value); };
public static string AttributeValue[System.Collections.Generic.IEnumerable<System.Xml.Linq.XElement> source, System.Xml.Linq.XName name] { get; set; }
static member AttributeValue(seq<System.Xml.Linq.XElement> * System.Xml.Linq.XName) : string with get, set
Public Shared Property AttributeValue(source As IEnumerable(Of XElement), name As XName) As String
Parametri
- source
- IEnumerable<XElement>
Raccolta di elementi XML per cui ottenere un valore di attributo o impostare un valore di attributo per .
- name
- XName
Nome dell'attributo XML per cui ottenere un valore o impostare un valore per .
Valore della proprietà
Valore dell'attributo XML identificato dal name parametro del primo elemento nella raccolta fornita di elementi XML. Se la raccolta è vuota, restituisce Nothing.
Vedi anche
Si applica a
AttributeValue[XElement, XName]
Ottiene o imposta il valore di un attributo XML. Questa proprietà non deve essere usata dal codice.
public:
static property System::String ^ AttributeValue[System::Xml::Linq::XElement ^, System::Xml::Linq::XName ^] { System::String ^ get(System::Xml::Linq::XElement ^ source, System::Xml::Linq::XName ^ name); void set(System::Xml::Linq::XElement ^ source, System::Xml::Linq::XName ^ name, System::String ^ value); };
public static string AttributeValue[System.Xml.Linq.XElement source, System.Xml.Linq.XName name] { get; set; }
static member AttributeValue(System.Xml.Linq.XElement * System.Xml.Linq.XName) : string with get, set
Public Shared Property AttributeValue(source As XElement, name As XName) As String
Parametri
- source
- XElement
Elemento XML per cui ottenere un valore di attributo o impostare un valore di attributo per .
- name
- XName
Nome dell'attributo XML per cui ottenere un valore o impostare un valore per .
Valore della proprietà
Valore dell'attributo XML identificato dal name parametro nell'elemento XML fornito.