Share via


LocalName Property

[This documentation is for preview only, and is subject to change in later releases. Blank topics are included as placeholders.]

When overridden in a derived class, gets the local name of the current node.

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

Syntax

'Declaration
Public Overridable ReadOnly Property LocalName As String
public virtual string LocalName { get; }
public:
virtual property String^ LocalName {
    String^ get ();
}
abstract LocalName : string with get
override LocalName : string with get
function get LocalName () : String

Property Value

Type: System. . :: . .String
The name of the current node with the prefix removed. For example, LocalName is book for the element <bk:book>.
For node types that do not have a name (like Text, Comment, and so on), this property returns String.Empty.

.NET Framework Security

See Also

Reference

XmlReader Class

System.Xml Namespace