InternalXmlHelper.AttributeValue[] Property

Definition

Gets or sets the value of an XML attribute. This property is not intended to be used from your code.

Overloads

AttributeValue[IEnumerable<XElement>, XName]

Gets or sets the value of an XML attribute. This property is not intended to be used from your code.

AttributeValue[XElement, XName]

Gets or sets the value of an XML attribute. This property is not intended to be used from your code.

AttributeValue[IEnumerable<XElement>, XName]

Gets or sets the value of an XML attribute. This property is not intended to be used from your code.

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

Parameters

source
IEnumerable<XElement>

A collection of XML elements to get an attribute value from or set an attribute value for.

name
XName

The name of the XML attribute to get a value from or set a value for.

Property Value

The value of the XML attribute identified by the name parameter from the first element in the supplied collection of XML elements. If the collection is empty, returns Nothing.

See also

Applies to

AttributeValue[XElement, XName]

Gets or sets the value of an XML attribute. This property is not intended to be used from your code.

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

Parameters

source
XElement

An XML element to get an attribute value from or set an attribute value for.

name
XName

The name of the XML attribute to get a value from or set a value for.

Property Value

The value of the XML attribute identified by the name parameter in the supplied XML element.

See also

Applies to