Udostępnij przez


InternalXmlHelper.AttributeValue[] Właściwość

Definicja

Pobiera lub ustawia wartość atrybutu XML. Ta właściwość nie jest przeznaczona do użycia z kodu.

Przeciążenia

AttributeValue[IEnumerable<XElement>, XName]

Pobiera lub ustawia wartość atrybutu XML. Ta właściwość nie jest przeznaczona do użycia z kodu.

AttributeValue[XElement, XName]

Pobiera lub ustawia wartość atrybutu XML. Ta właściwość nie jest przeznaczona do użycia z kodu.

AttributeValue[IEnumerable<XElement>, XName]

Pobiera lub ustawia wartość atrybutu XML. Ta właściwość nie jest przeznaczona do użycia z kodu.

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

Parametry

source
IEnumerable<XElement>

Kolekcja elementów XML umożliwiających pobranie wartości atrybutu z lub ustawienie wartości atrybutu.

name
XName

Nazwa atrybutu XML, aby uzyskać wartość z lub ustawić wartość dla.

Wartość właściwości

Wartość atrybutu XML zidentyfikowanego przez name parametr z pierwszego elementu w dostarczonej kolekcji elementów XML. Jeśli kolekcja jest pusta, zwraca wartość Nothing.

Zobacz też

Dotyczy

AttributeValue[XElement, XName]

Pobiera lub ustawia wartość atrybutu XML. Ta właściwość nie jest przeznaczona do użycia z kodu.

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

Parametry

source
XElement

Element XML umożliwiający pobranie wartości atrybutu z lub ustawienie wartości atrybutu.

name
XName

Nazwa atrybutu XML, aby uzyskać wartość z lub ustawić wartość dla.

Wartość właściwości

Wartość atrybutu XML zidentyfikowanego przez name parametr w podanym elemmencie XML.

Zobacz też

Dotyczy