InternalXmlHelper.AttributeValue[] 屬性

定義

取得或設定 XML 屬性的值。 此屬性並非用於你的程式碼。

多載

名稱 Description
AttributeValue[IEnumerable<XElement>, XName]

取得或設定 XML 屬性的值。 此屬性並非用於你的程式碼。

AttributeValue[XElement, XName]

取得或設定 XML 屬性的值。 此屬性並非用於你的程式碼。

AttributeValue[IEnumerable<XElement>, XName]

取得或設定 XML 屬性的值。 此屬性並非用於你的程式碼。

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

參數

source
IEnumerable<XElement>

一組 XML 元素,用來取得屬性值或設定屬性值。

name
XName

用來取得值或設定值的 XML 屬性名稱。

屬性值

XML 屬性的值由所提供 XML 元素集合中第一個元素的參數所識別 name 。 若集合為空,則返回 Nothing

另請參閱

適用於

AttributeValue[XElement, XName]

取得或設定 XML 屬性的值。 此屬性並非用於你的程式碼。

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

參數

source
XElement

一個 XML 元素,用來取得屬性值或設定屬性值。

name
XName

用來取得值或設定值的 XML 屬性名稱。

屬性值

由所提供 XML 元素中參數所識別 name 的 XML 屬性值。

另請參閱

適用於