XmlAttribute.LocalName Property

 

Gets the local name of the node.

Namespace:   System.Xml
Assembly:  System.Xml (in System.Xml.dll)

override LocalName : string with get

Property Value

Type: System.String

The name of the attribute node with the prefix removed. In the following example <book bk:genre= 'novel'>, the LocalName of the attribute is genre.

If the node does not have a prefix, LocalName is the same as Name.

The following example displays information on each of the nodes in the attribute collection.

No code example is currently available or this language may not be supported.

Universal Windows Platform
Available since 10
.NET Framework
Available since 1.1
Return to top
Show: