InternalXmlHelper.AttributeValue[] Proprietà

Definizione

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.

Vedi anche

Si applica a