XmlDictionary XmlDictionary XmlDictionary XmlDictionary Class

Definition

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

public ref class XmlDictionary : System::Xml::IXmlDictionary
public class XmlDictionary : System.Xml.IXmlDictionary
type XmlDictionary = class
    interface IXmlDictionary
Public Class XmlDictionary
Implements IXmlDictionary
Inheritance
XmlDictionaryXmlDictionaryXmlDictionaryXmlDictionary
Implements

Remarks

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.

Constructors

XmlDictionary() XmlDictionary() XmlDictionary() XmlDictionary()

Creates an empty XmlDictionary.

XmlDictionary(Int32) XmlDictionary(Int32) XmlDictionary(Int32) XmlDictionary(Int32)

Creates a XmlDictionary with an initial capacity.

Properties

Empty Empty Empty Empty

Gets a static empty IXmlDictionary.

Methods

Add(String) Add(String) Add(String) Add(String)

Adds a string to the XmlDictionary.

Equals(Object) Equals(Object) Equals(Object) Equals(Object)

Determines whether the specified object is equal to the current object.

(Inherited from Object)
GetHashCode() GetHashCode() GetHashCode() GetHashCode()

Serves as the default hash function.

(Inherited from Object)
GetType() GetType() GetType() GetType()

Gets the Type of the current instance.

(Inherited from Object)
MemberwiseClone() MemberwiseClone() MemberwiseClone() MemberwiseClone()

Creates a shallow copy of the current Object.

(Inherited from Object)
ToString() ToString() ToString() ToString()

Returns a string that represents the current object.

(Inherited from Object)
TryLookup(Int32, XmlDictionaryString) TryLookup(Int32, XmlDictionaryString) TryLookup(Int32, XmlDictionaryString) TryLookup(Int32, XmlDictionaryString)

Attempts to look up an entry in the dictionary.

TryLookup(String, XmlDictionaryString) TryLookup(String, XmlDictionaryString) TryLookup(String, XmlDictionaryString) TryLookup(String, XmlDictionaryString)

Checks the dictionary for a specified string value.

TryLookup(XmlDictionaryString, XmlDictionaryString) TryLookup(XmlDictionaryString, XmlDictionaryString) TryLookup(XmlDictionaryString, XmlDictionaryString) TryLookup(XmlDictionaryString, XmlDictionaryString)

Checks the dictionary for a specified XmlDictionaryString.

Applies to