Export (0) Print
Expand All

XmlDictionary Class

Implements a dictionary used to optimize 's XML reader/writer implementations.

System.Object
  System.Xml.XmlDictionary

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

'Declaration
Public Class XmlDictionary _
	Implements IXmlDictionary

The XmlDictionary type exposes the following members.

  NameDescription
Public methodSupported by Portable Class LibraryXmlDictionaryCreates an empty XmlDictionary.
Public methodSupported by Portable Class LibraryXmlDictionary(Int32)Creates a XmlDictionary with an initial capacity.
Top

  NameDescription
Public propertyStatic memberSupported by Portable Class LibraryEmptyGets a static empty IXmlDictionary.
Top

  NameDescription
Public methodSupported by Portable Class LibraryAddAdds a string to the XmlDictionary.
Public methodSupported by Portable Class LibraryEquals(Object)Determines whether the specified Object is equal to the current Object. (Inherited from Object.)
Protected methodSupported by Portable Class LibraryFinalizeAllows an object to try to free resources and perform other cleanup operations before it is reclaimed by garbage collection. (Inherited from Object.)
Public methodSupported by Portable Class LibraryGetHashCodeServes as a hash function for a particular type. (Inherited from Object.)
Public methodSupported by Portable Class LibraryGetTypeGets the Type of the current instance. (Inherited from Object.)
Protected methodSupported by Portable Class LibraryMemberwiseCloneCreates a shallow copy of the current Object. (Inherited from Object.)
Public methodSupported by Portable Class LibraryToStringReturns a string that represents the current object. (Inherited from Object.)
Public methodSupported by Portable Class LibraryTryLookup(Int32, XmlDictionaryString)Attempts to look up an entry in the dictionary.
Public methodSupported by Portable Class LibraryTryLookup(String, XmlDictionaryString)Checks the dictionary for a specified string value.
Public methodSupported by Portable Class LibraryTryLookup(XmlDictionaryString, XmlDictionaryString)Checks the dictionary for a specified XmlDictionaryString.
Top

Dictionaries establish a mapping between commonly appearing text strings, and integers, and provide an effective mechanism for compressing and decompressing XML. uses 2 kinds of dictionaries, static and dynamic.

With static dictionaries, both sides of the communication use a predefined dictionary.

With dynamic dictionaries, the sending side can add new strings and their mappings not already in the static dictionary. Dynamic dictionaries are sent out of band with the message. Dynamic dictionaries use the XmlBinaryWriterSession and XmlBinaryReaderSession classes to transmit messages and mappings.

.NET Framework

Supported in: 4, 3.5, 3.0

.NET Framework Client Profile

Supported in: 4, 3.5 SP1

Portable Class Library

Supported in: Portable Class Library

Windows 7, Windows Vista SP1 or later, Windows XP SP3, Windows Server 2008 (Server Core not supported), Windows Server 2008 R2 (Server Core supported with SP1 or later), Windows Server 2003 SP2

The .NET Framework does not support all versions of every platform. For a list of the supported versions, see .NET Framework System Requirements.

Any public static (Shared in Visual Basic) members of this type are thread safe. Any instance members are not guaranteed to be thread safe.

Community Additions

ADD
Show:
© 2014 Microsoft