This documentation is archived and is not being maintained.

XmlNode.Name Property

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

[Visual Basic]
Public MustOverride ReadOnly Property Name As String
public abstract string Name {get;}
public: __property virtual String* get_Name() = 0;
public abstract function get Name() : String;

Property Value

The qualified name of the node. The name returned is dependent on the NodeType of the node:

Type Name
Attribute The qualified name of the attribute.
CDATA #cdata-section
Comment #comment
Document #document
DocumentFragment #document-fragment
DocumentType The document type name.
Element The qualified name of the element.
Entity The name of the entity.
EntityReference The name of the entity referenced.
Notation The notation name.
ProcessingInstruction The target of the processing instruction.
Text #text
Whitespace #whitespace
SignificantWhitespace #significant-whitespace
XmlDeclaration #xml-declaration


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

See Also

XmlNode Class | XmlNode Members | System.Xml Namespace