Click to Rate and Give Feedback
MSDN
MSDN Library
.NET Development
Previous Versions
.NET Framework 1.1
.NET Framework
Reference
System.Xml
XmlReader Class
Properties
 LocalName Property
This page is specific to
Microsoft Visual Studio 2003/.NET Framework 1.1

Other versions are also available for the following:
.NET Framework Class Library
XmlReader.LocalName Property

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

[Visual Basic]
Public MustOverride ReadOnly Property LocalName As String
[C#]
public abstract string LocalName {get;}
[C++]
public: __property virtual String* get_LocalName() = 0;
[JScript]
public abstract function get LocalName() : String;

Property Value

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.

Example

See LocalName (in the XmlTextReader class) for an example using this property.

Requirements

Platforms: Windows 98, Windows NT 4.0, Windows Millennium Edition, Windows 2000, Windows XP Home Edition, Windows XP Professional, Windows Server 2003 family, .NET Compact Framework, Common Language Infrastructure (CLI) Standard

See Also

XmlReader Class | XmlReader Members | System.Xml Namespace

© 2009 Microsoft Corporation. All rights reserved. Terms of Use | Trademarks | Privacy Statement
Page view tracker