Attribute (XElement dynamic property)
Gets an indexer used to retrieve the attribute instance that corresponds to the specified expanded name.
Syntax
elem.Attribute[{namespaceName}attribName]
Property value/return value
An indexer of the type XAttribute Item(String expandedName)
. This indexer takes the expanded name of the specified attribute and returns the corresponding XAttribute, or null
if there is no attribute with the specified name.
Remarks
This property is equivalent to the Attribute method of the System.Xml.Linq.XElement class.
See also
Samarbejd med os på GitHub
Kilden til dette indhold kan findes på GitHub, hvor du også kan oprette og gennemse problemer og pullanmodninger. Du kan få flere oplysninger i vores vejledning til bidragydere.
.NET Desktop feedback