Olvasás angol nyelven Szerkesztés

Megosztás a következőn keresztül:


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.

C#
public static string AttributeValue[System.Collections.Generic.IEnumerable<System.Xml.Linq.XElement> source, System.Xml.Linq.XName name] { get; set; }

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

.NET Framework 4.8.1 és más verziók
Termék Verziók
.NET Framework 4.0, 4.5, 4.5.1, 4.5.2, 4.6, 4.6.1, 4.6.2, 4.7, 4.7.1, 4.7.2, 4.8, 4.8.1

AttributeValue[XElement, XName]

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

C#
public static string AttributeValue[System.Xml.Linq.XElement source, System.Xml.Linq.XName name] { get; set; }

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

.NET Framework 4.8.1 és más verziók
Termék Verziók
.NET Framework 4.0, 4.5, 4.5.1, 4.5.2, 4.6, 4.6.1, 4.6.2, 4.7, 4.7.1, 4.7.2, 4.8, 4.8.1