XmlDictionary Class
TOC
Collapse the table of content
Expand the table of content

XmlDictionary Class

 

Implements a dictionary used to optimize Windows Communication Foundation (WCF)'s XML reader/writer implementations.

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

System.Object
  System.Xml.XmlDictionary

public class XmlDictionary : IXmlDictionary

NameDescription
System_CAPS_pubmethodXmlDictionary()

Creates an empty XmlDictionary.

System_CAPS_pubmethodXmlDictionary(Int32)

Creates a XmlDictionary with an initial capacity.

NameDescription
System_CAPS_pubpropertySystem_CAPS_staticEmpty

Gets a static empty IXmlDictionary.

NameDescription
System_CAPS_pubmethodAdd(String)

Adds a string to the XmlDictionary.

System_CAPS_pubmethodEquals(Object)

Determines whether the specified object is equal to the current object.(Inherited from Object.)

System_CAPS_protmethodFinalize()

Allows an object to try to free resources and perform other cleanup operations before it is reclaimed by garbage collection.(Inherited from Object.)

System_CAPS_pubmethodGetHashCode()

Serves as the default hash function. (Inherited from Object.)

System_CAPS_pubmethodGetType()

Gets the Type of the current instance.(Inherited from Object.)

System_CAPS_protmethodMemberwiseClone()

Creates a shallow copy of the current Object.(Inherited from Object.)

System_CAPS_pubmethodToString()

Returns a string that represents the current object.(Inherited from Object.)

System_CAPS_pubmethodTryLookup(Int32, XmlDictionaryString)

Attempts to look up an entry in the dictionary.

System_CAPS_pubmethodTryLookup(String, XmlDictionaryString)

Checks the dictionary for a specified string value.

System_CAPS_pubmethodTryLookup(XmlDictionaryString, XmlDictionaryString)

Checks the dictionary for a specified XmlDictionaryString.

Dictionaries establish a mapping between commonly appearing text strings, and integers, and provide an effective mechanism for compressing and decompressing XML. Windows Communication Foundation (WCF) 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.

Universal Windows Platform
Available since 4.5
.NET Framework
Available since 3.0
Portable Class Library
Supported in: portable .NET platforms
Silverlight
Available since 2.0
Windows Phone Silverlight
Available since 7.0
Windows Phone
Available since 8.1

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

Return to top
Show:
© 2016 Microsoft