This documentation is archived and is not being maintained.

XmlReader.NameTable Property

When overridden in a derived class, gets the XmlNameTable associated with this implementation.

[Visual Basic]
Public MustOverride ReadOnly Property NameTable As XmlNameTable
public abstract XmlNameTable NameTable {get;}
public: __property virtual XmlNameTable* get_NameTable() = 0;
public abstract function get NameTable() : XmlNameTable;

Property Value

The XmlNameTable enabling you to get the atomized version of a string within the node.


All node and attribute names returned from this class are atomized using the NameTable. When the same name is returned multiple times (for example, Customer), then the same String object will be returned for that name. This makes it possible for you to write efficient code that does object comparisons on these strings instead of expensive string comparisons.


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 | XmlNameTable