InternalXmlHelper.AttributeValue[] Proprietà

Definizione

Ottiene o imposta il valore di un attributo XML. Questa proprietà non può essere utilizzata dal codice.

Overload

AttributeValue[IEnumerable<XElement>, XName]

Ottiene o imposta il valore di un attributo XML. Questa proprietà non può essere utilizzata dal codice.

AttributeValue[XElement, XName]

Ottiene o imposta il valore di un attributo XML. Questa proprietà non può essere utilizzata dal codice.

AttributeValue[IEnumerable<XElement>, XName]

Ottiene o imposta il valore di un attributo XML. Questa proprietà non può essere utilizzata 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>

Insieme di elementi XML da cui ottenere o per cui impostare il valore di un attributo.

name
XName

Nome dell'attributo XML da cui ottenere o per cui impostare un valore.

Valore della proprietà

Valore dell'attributo XML identificato dal parametro name dal primo elemento nell'insieme di elementi XML fornito. Se l'insieme è vuoto, restituisce Nothing.

Vedi anche

Si applica a

AttributeValue[XElement, XName]

Ottiene o imposta il valore di un attributo XML. Questa proprietà non può essere utilizzata 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 da cui ottenere o per cui impostare il valore di un attributo.

name
XName

Nome dell'attributo XML da cui ottenere o per cui impostare un valore.

Valore della proprietà

Valore dell'attributo XML identificato dal parametro name nell'elemento XML fornito.

Vedi anche

Si applica a