Partager via


SerializableDictionary<TKey, TValue> Class

 

Represents a serializeable collection of keys and values.

Namespace:   Microsoft.WindowsServerSolutions.Administration.ObjectModel
Assembly:  Microsoft.WindowsServerSolutions.Administration.ObjectModel (in Microsoft.WindowsServerSolutions.Administration.ObjectModel.dll)

Inheritance Hierarchy

System.Object
  System.Collections.Generic.Dictionary<TKey, TValue>
    Microsoft.WindowsServerSolutions.Administration.ObjectModel.SerializableDictionary<TKey, TValue>

Syntax

[SerializableAttribute]
public class SerializableDictionary<TKey, TValue> : Dictionary<TKey, TValue>, 
    IXmlSerializable
generic<typename TKey, typename TValue>
[SerializableAttribute]
public ref class SerializableDictionary : Dictionary<TKey, TValue>, 
    IXmlSerializable
<SerializableAttribute>
Public Class SerializableDictionary(Of TKey, TValue)
    Inherits Dictionary(Of TKey, TValue)
    Implements IXmlSerializable

Type Parameters

  • TKey
    The type of the keys in the dictionary.
  • TValue
    The type of the values in the dictionary.

Constructors

Name Description
System_CAPS_pubmethod SerializableDictionary<TKey, TValue>()

Initializes a new instance of the SerializableDictionary<TKey, TValue> class.

System_CAPS_protmethod SerializableDictionary<TKey, TValue>(SerializationInfo, StreamingContext)

Initializes a new instance of the SerializableDictionary<TKey, TValue> class.

Properties

Name Description
System_CAPS_pubproperty Comparer

(Inherited from Dictionary<TKey, TValue>.)

System_CAPS_pubproperty Count

(Inherited from Dictionary<TKey, TValue>.)

System_CAPS_pubproperty Item[TKey]

(Inherited from Dictionary<TKey, TValue>.)

System_CAPS_pubproperty Keys

(Inherited from Dictionary<TKey, TValue>.)

System_CAPS_pubproperty Values

(Inherited from Dictionary<TKey, TValue>.)

Methods

Name Description
System_CAPS_pubmethod Add(TKey, TValue)

(Inherited from Dictionary<TKey, TValue>.)

System_CAPS_pubmethod Clear()

(Inherited from Dictionary<TKey, TValue>.)

System_CAPS_pubmethod ContainsKey(TKey)

(Inherited from Dictionary<TKey, TValue>.)

System_CAPS_pubmethod ContainsValue(TValue)

(Inherited from Dictionary<TKey, TValue>.)

System_CAPS_pubmethod Equals(Object)

(Inherited from Object.)

System_CAPS_protmethod Finalize()

(Inherited from Object.)

System_CAPS_pubmethod GetEnumerator()

(Inherited from Dictionary<TKey, TValue>.)

System_CAPS_pubmethod GetHashCode()

(Inherited from Object.)

System_CAPS_pubmethod GetObjectData(SerializationInfo, StreamingContext)

(Inherited from Dictionary<TKey, TValue>.)

System_CAPS_pubmethod GetSchema()

Returns the schema that is specific to the data. ///

System_CAPS_pubmethod GetType()

(Inherited from Object.)

System_CAPS_protmethod MemberwiseClone()

(Inherited from Object.)

System_CAPS_pubmethod OnDeserialization(Object)

(Inherited from Dictionary<TKey, TValue>.)

System_CAPS_pubmethod ReadXml(XmlReader)

Creates a dictionary from an XML representation.

System_CAPS_pubmethod Remove(TKey)

(Inherited from Dictionary<TKey, TValue>.)

System_CAPS_pubmethod ToString()

(Inherited from Object.)

System_CAPS_pubmethod TryGetValue(TKey, TValue)

(Inherited from Dictionary<TKey, TValue>.)

System_CAPS_pubmethod WriteXml(XmlWriter)

Creates an XML representation of the current dictionary.

Explicit Interface Implementations

Name Description
System_CAPS_pubinterfaceSystem_CAPS_privmethod ICollection<KeyValuePair<TKey, TValue>>.Add(KeyValuePair<TKey, TValue>)

(Inherited from Dictionary<TKey, TValue>.)

System_CAPS_pubinterfaceSystem_CAPS_privmethod ICollection<KeyValuePair<TKey, TValue>>.Contains(KeyValuePair<TKey, TValue>)

(Inherited from Dictionary<TKey, TValue>.)

System_CAPS_pubinterfaceSystem_CAPS_privmethod ICollection<KeyValuePair<TKey, TValue>>.CopyTo(KeyValuePair<TKey, TValue>[], Int32)

(Inherited from Dictionary<TKey, TValue>.)

System_CAPS_pubinterfaceSystem_CAPS_privmethod ICollection<KeyValuePair<TKey, TValue>>.Remove(KeyValuePair<TKey, TValue>)

(Inherited from Dictionary<TKey, TValue>.)

System_CAPS_pubinterfaceSystem_CAPS_privmethod IEnumerable<KeyValuePair<TKey, TValue>>.GetEnumerator()

(Inherited from Dictionary<TKey, TValue>.)

System_CAPS_pubinterfaceSystem_CAPS_privmethod ICollection.CopyTo(Array, Int32)

(Inherited from Dictionary<TKey, TValue>.)

System_CAPS_pubinterfaceSystem_CAPS_privmethod IDictionary.Add(Object, Object)

(Inherited from Dictionary<TKey, TValue>.)

System_CAPS_pubinterfaceSystem_CAPS_privmethod IDictionary.Contains(Object)

(Inherited from Dictionary<TKey, TValue>.)

System_CAPS_pubinterfaceSystem_CAPS_privmethod IDictionary.GetEnumerator()

(Inherited from Dictionary<TKey, TValue>.)

System_CAPS_pubinterfaceSystem_CAPS_privmethod IDictionary.Remove(Object)

(Inherited from Dictionary<TKey, TValue>.)

System_CAPS_pubinterfaceSystem_CAPS_privmethod IEnumerable.GetEnumerator()

(Inherited from Dictionary<TKey, TValue>.)

System_CAPS_pubinterfaceSystem_CAPS_privproperty ICollection<KeyValuePair<TKey, TValue>>.IsReadOnly

(Inherited from Dictionary<TKey, TValue>.)

System_CAPS_pubinterfaceSystem_CAPS_privproperty IDictionary<TKey, TValue>.Keys

(Inherited from Dictionary<TKey, TValue>.)

System_CAPS_pubinterfaceSystem_CAPS_privproperty IDictionary<TKey, TValue>.Values

(Inherited from Dictionary<TKey, TValue>.)

System_CAPS_pubinterfaceSystem_CAPS_privproperty IReadOnlyDictionary<TKey, TValue>.Keys

(Inherited from Dictionary<TKey, TValue>.)

System_CAPS_pubinterfaceSystem_CAPS_privproperty IReadOnlyDictionary<TKey, TValue>.Values

(Inherited from Dictionary<TKey, TValue>.)

System_CAPS_pubinterfaceSystem_CAPS_privproperty ICollection.IsSynchronized

(Inherited from Dictionary<TKey, TValue>.)

System_CAPS_pubinterfaceSystem_CAPS_privproperty ICollection.SyncRoot

(Inherited from Dictionary<TKey, TValue>.)

System_CAPS_pubinterfaceSystem_CAPS_privproperty IDictionary.IsFixedSize

(Inherited from Dictionary<TKey, TValue>.)

System_CAPS_pubinterfaceSystem_CAPS_privproperty IDictionary.IsReadOnly

(Inherited from Dictionary<TKey, TValue>.)

System_CAPS_pubinterfaceSystem_CAPS_privproperty IDictionary.Item[Object]

(Inherited from Dictionary<TKey, TValue>.)

System_CAPS_pubinterfaceSystem_CAPS_privproperty IDictionary.Keys

(Inherited from Dictionary<TKey, TValue>.)

System_CAPS_pubinterfaceSystem_CAPS_privproperty IDictionary.Values

(Inherited from Dictionary<TKey, TValue>.)

Thread Safety

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

See Also

Microsoft.WindowsServerSolutions.Administration.ObjectModel Namespace

Return to top