XmlReaderSettings.NameTable Property

Microsoft Silverlight will reach end of support after October 2021. Learn more.

Gets or sets the XmlNameTable used for atomized string comparisons.

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

Syntax

'Declaration
Public Property NameTable As XmlNameTable
public XmlNameTable NameTable { get; set; }

Property Value

Type: System.Xml.XmlNameTable
The XmlNameTable that stores all the atomized strings used by all XmlReader instances created using this XmlReaderSettings object.
The default is nulla null reference (Nothing in Visual Basic). The created XmlReader instance will use a new empty NameTable if this value is nulla null reference (Nothing in Visual Basic).

Remarks

Set this property to an XmlNameTable instance if you want to share a common name table among all the created XmlReader instances.

NoteNote:

The NameTable class is not thread-safe. Therefore it cannot be shared between XmlReader objects that run simultaneously in different threads.

Version Information

Silverlight

Supported in: 5, 4, 3

Silverlight for Windows Phone

Supported in: Windows Phone OS 7.1, Windows Phone OS 7.0

XNA Framework

Supported in: Xbox 360, Windows Phone OS 7.0

Platforms

For a list of the operating systems and browsers that are supported by Silverlight, see Supported Operating Systems and Browsers.