CharacterMappingDictionary ClassCharacterMappingDictionary ClassCharacterMappingDictionary Class

Represents a collection of mappings from a Unicode codepoint to a string which may be applied during serialization.

Inheritance Hierarchy

Syntax

Public NotInheritable Class CharacterMappingDictionary _
        Implements IDictionary(Of Integer, String), _
                   ICollection(Of KeyValuePair(Of Integer, String)), _
                   IEnumerable(Of KeyValuePair(Of Integer, String)), _
                   System.Collections.IEnumerable
public:
ref class CharacterMappingDictionary sealed : IDictionary<int, String^>,
        ICollection<KeyValuePair<int, String^>>,
        IEnumerable<KeyValuePair<int, String^>>,
        System.Collections::IEnumerable^
 
The CharacterMappingDictionaryCharacterMappingDictionaryCharacterMappingDictionary type exposes the following members.

Properties

 PropertyDescription
Public propertyCountCountCount Gets the number of character mappings in the CharacterMappingDictionaryCharacterMappingDictionaryCharacterMappingDictionary.
Public propertyIsReadOnlyIsReadOnlyIsReadOnly Gets a value indicating whether the collection is read-only.
Public propertyItemItemItem Gets or sets the stringStringString to which the given Unicode codepoint is mapped.
Public propertyKeysKeysKeys Gets a collection of intIntegerint values containing the character mapping keys.
Public propertyValuesValuesValues Gets a collection of stringStringString values containing the character mapping strings.

Top

Methods

 MethodDescription
Public methodAdd (char, string)Add (Char, String)Add (char, String^) Adds a mapping from a character to a string.
Public methodAdd (int, string)Add (Integer, String)Add (int, String^) Adds a mapping from a Unicode codepoint to a string.
Public methodClearClearClear Removes all character mappings from the collection.
Public methodContainsKey (char)ContainsKey (Char)ContainsKey (char) Returns a value indicating whether the CharacterMappingDictionaryCharacterMappingDictionaryCharacterMappingDictionary contains a mapping for the character specified by key.
Public methodContainsKey (int)ContainsKey (Integer)ContainsKey (int) Returns a value indicating whether the CharacterMappingDictionaryCharacterMappingDictionaryCharacterMappingDictionary contains a mapping for the given Unicode codepoint.
Public methodObject.EqualsObject.EqualsObject::Equals Determines whether the specified objectObjectobject is equal to the current objectObjectobject. (Inherited from System.ObjectSystem.ObjectSystem::Object)
Protected methodObject.FinalizeObject.FinalizeObject::Finalize Allows an objectObjectobject to attempt to free resources and perform other cleanup operations before the objectObjectobject is reclaimed by garbage collection. (Inherited from System.ObjectSystem.ObjectSystem::Object)
Public methodGetEnumeratorGetEnumeratorGetEnumerator Returns an enumerator that iterates through the character mapping.
Public methodObject.GetHashCodeObject.GetHashCodeObject::GetHashCode Serves as a hash function for a particular type. (Inherited from System.ObjectSystem.ObjectSystem::Object)
Public methodObject.GetTypeObject.GetTypeObject::GetType Gets the TypeTypeType of the current instance. (Inherited from System.ObjectSystem.ObjectSystem::Object)
Protected methodObject.MemberwiseCloneObject.MemberwiseCloneObject::MemberwiseClone Creates a shallow copy of the current objectObjectobject. (Inherited from System.ObjectSystem.ObjectSystem::Object)
Public methodRemove (char)Remove (Char)Remove (char) Removes the mapping of the specified character.
Public methodRemove (int)Remove (Integer)Remove (int) Removes the mapping of the specified Unicode codepoint.
Public methodObject.ToStringObject.ToStringObject::ToString Returns a stringStringString that represents the current objectObjectobject. (Inherited from System.ObjectSystem.ObjectSystem::Object)
Public methodTryGetValue (char, out string)TryGetValue (Char, ByRef String)TryGetValue (char, String^%) Gets the string to which key is mapped if such a mapping exists.
Public methodTryGetValue (int, out string)TryGetValue (Integer, ByRef String)TryGetValue (int, String^%) Gets the string to which a given Unicode codepoint is mapped if such a mapping exists.

Top

Remarks

The CharacterMappingDictionaryCharacterMappingDictionaryCharacterMappingDictionary is used in the XdmWriterSettingsXdmWriterSettingsXdmWriterSettings to specify the mapping from single Unicode characters to strings of Unicode characters. This mapping is applied during the character expansion phase of serialization.