语言

InternalXmlHelper.AttributeValue[] 属性

定义

获取或设置 XML 特性的值。 此属性不应用于代码。

重载

名称 说明
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 属性的名称。

属性值

由 name 提供 XML 元素集合中第一个元素的参数标识的 XML 特性的值。 如果集合为空,则 Nothing返回 。

另请参阅

  • Visual BasicXML>

适用于

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 属性的名称。

属性值

由 name 提供的 XML 元素中的参数标识的 XML 特性的值。

另请参阅

  • Visual BasicXML>

适用于