System.Xml.XPath.XPathNavigator.NameTable Property

When overridden in a derived class, gets the System.Xml.XmlNameTable of the System.Xml.XPath.XPathNavigator.

Syntax

public abstract System.Xml.XmlNameTable NameTable { get; }

Value

An System.Xml.XmlNameTable instance for this instance.

Remarks

The System.Xml.XmlNameTable stores atomized strings of any local name, namespace URI, and prefix used by the System.Xml.XPath.XPathNavigator. This means that when the same XPathNavigator.Name is returned multiple times (like "book"), the same string object is returned for that XPathNavigator.Name. This makes it possible to write efficient code that does object comparisons on these strings, instead of expensive string comparisons.

Requirements

Namespace: System.Xml.XPath
Assembly: System.Xml (in System.Xml.dll)
Assembly Versions: 1.0.5000.0, 2.0.0.0, 4.0.0.0