Share via


PartitionDictionary Class

Represents a collection of partitions.

Inheritance Hierarchy

Object
  Dictionary<Guid, Partition>
    Microsoft.VisualStudio.Modeling.PartitionDictionary

Namespace:  Microsoft.VisualStudio.Modeling
Assembly:  Microsoft.VisualStudio.Modeling.Sdk.11.0 (in Microsoft.VisualStudio.Modeling.Sdk.11.0.dll)

Syntax

'Declaration
<SerializableAttribute> _
Public Class PartitionDictionary _
    Inherits Dictionary(Of Guid, Partition)
[SerializableAttribute]
public class PartitionDictionary : Dictionary<Guid, Partition>
[SerializableAttribute]
public ref class PartitionDictionary : public Dictionary<Guid, Partition^>
[<SerializableAttribute>]
type PartitionDictionary =  
    class 
        inherit Dictionary<Guid, Partition>
    end
public class PartitionDictionary extends Dictionary<Guid, Partition>

The PartitionDictionary type exposes the following members.

Constructors

  Name Description
Public method PartitionDictionary() Default constructor.
Protected method PartitionDictionary(SerializationInfo, StreamingContext) Protected constructor. It is executed during deserialization.

Top

Properties

  Name Description
Public property Comparer Gets the IEqualityComparer that is used to determine equality of keys for the dictionary. (Inherited from Dictionary<Guid, Partition>.)
Public property Count Gets the number of key/value pairs contained in the Dictionary. (Inherited from Dictionary<Guid, Partition>.)
Public property Item Gets or sets the value associated with the specified key. (Inherited from Dictionary<Guid, Partition>.)
Public property Keys Gets a collection containing the keys in the Dictionary. (Inherited from Dictionary<Guid, Partition>.)
Public property Values Gets a collection containing the values in the Dictionary. (Inherited from Dictionary<Guid, Partition>.)

Top

Methods

  Name Description
Public method Add Adds the specified key and value to the dictionary. (Inherited from Dictionary<Guid, Partition>.)
Public method Clear Removes all keys and values from the Dictionary. (Inherited from Dictionary<Guid, Partition>.)
Public method ContainsKey Determines whether the Dictionary contains the specified key. (Inherited from Dictionary<Guid, Partition>.)
Public method ContainsValue Determines whether the Dictionary contains a specific value. (Inherited from Dictionary<Guid, Partition>.)
Public method Equals Determines whether the specified object is equal to the current object. (Inherited from Object.)
Protected method Finalize Allows an object to try to free resources and perform other cleanup operations before it is reclaimed by garbage collection. (Inherited from Object.)
Public method GetEnumerator Returns an enumerator that iterates through the Dictionary. (Inherited from Dictionary<Guid, Partition>.)
Public method GetHashCode Serves as a hash function for a particular type. (Inherited from Object.)
Public method GetObjectData Security Critical. Implements the ISerializable interface and returns the data needed to serialize the Dictionary instance. (Inherited from Dictionary<Guid, Partition>.)
Public method GetType Gets the Type of the current instance. (Inherited from Object.)
Protected method MemberwiseClone Creates a shallow copy of the current Object. (Inherited from Object.)
Public method OnDeserialization Implements the ISerializable interface and raises the deserialization event when the deserialization is complete. (Inherited from Dictionary<Guid, Partition>.)
Public method Remove Remove method to also remove the partition from the store's PartitionAlternate collection
Public method ToString Returns a string that represents the current object. (Inherited from Object.)
Public method TryGetValue Gets the value associated with the specified key. (Inherited from Dictionary<Guid, Partition>.)

Top

Explicit Interface Implementations

  Name Description
Explicit interface implemetationPrivate method System#Collections#Generic#ICollection{T}#Add Adds the specified value to the ICollection with the specified key. (Inherited from Dictionary<Guid, Partition>.)
Explicit interface implemetationPrivate method System#Collections#IDictionary#Add Adds the specified key and value to the dictionary. (Inherited from Dictionary<Guid, Partition>.)
Explicit interface implemetationPrivate method System#Collections#Generic#ICollection{T}#Contains Determines whether the ICollection contains a specific key and value. (Inherited from Dictionary<Guid, Partition>.)
Explicit interface implemetationPrivate method System#Collections#IDictionary#Contains Determines whether the IDictionary contains an element with the specified key. (Inherited from Dictionary<Guid, Partition>.)
Explicit interface implemetationPrivate method System#Collections#Generic#ICollection{T}#CopyTo Copies the elements of the ICollection to an array of type KeyValuePair, starting at the specified array index. (Inherited from Dictionary<Guid, Partition>.)
Explicit interface implemetationPrivate method System#Collections#ICollection#CopyTo Copies the elements of the ICollection to an array, starting at the specified array index. (Inherited from Dictionary<Guid, Partition>.)
Explicit interface implemetationPrivate method System#Collections#Generic#IEnumerable{T}#GetEnumerator Returns an enumerator that iterates through the collection. (Inherited from Dictionary<Guid, Partition>.)
Explicit interface implemetationPrivate method System#Collections#IEnumerable#GetEnumerator Returns an enumerator that iterates through the collection. (Inherited from Dictionary<Guid, Partition>.)
Explicit interface implemetationPrivate method System#Collections#IDictionary#GetEnumerator Returns an IDictionaryEnumerator for the IDictionary. (Inherited from Dictionary<Guid, Partition>.)
Explicit interface implemetationPrivate property System#Collections#IDictionary#IsFixedSize Gets a value indicating whether the IDictionary has a fixed size. (Inherited from Dictionary<Guid, Partition>.)
Explicit interface implemetationPrivate property System#Collections#Generic#ICollection{T}#IsReadOnly Gets a value indicating whether the dictionary is read-only. (Inherited from Dictionary<Guid, Partition>.)
Explicit interface implemetationPrivate property System#Collections#IDictionary#IsReadOnly Gets a value indicating whether the IDictionary is read-only. (Inherited from Dictionary<Guid, Partition>.)
Explicit interface implemetationPrivate property System#Collections#ICollection#IsSynchronized Gets a value indicating whether access to the ICollection is synchronized (thread safe). (Inherited from Dictionary<Guid, Partition>.)
Explicit interface implemetationPrivate property System#Collections#IDictionary#Item Gets or sets the value with the specified key. (Inherited from Dictionary<Guid, Partition>.)
Explicit interface implemetationPrivate property System#Collections#Generic#IDictionary{TKey@TValue}#Keys Gets an ICollection containing the keys of the IDictionary. (Inherited from Dictionary<Guid, Partition>.)
Explicit interface implemetationPrivate property System#Collections#Generic#IReadOnlyDictionary{TKey@TValue}#Keys Gets a collection containing the keys of the IReadOnlyDictionary. (Inherited from Dictionary<Guid, Partition>.)
Explicit interface implemetationPrivate property System#Collections#IDictionary#Keys Gets an ICollection containing the keys of the IDictionary. (Inherited from Dictionary<Guid, Partition>.)
Explicit interface implemetationPrivate method System#Collections#Generic#ICollection{T}#Remove Removes a key and value from the dictionary. (Inherited from Dictionary<Guid, Partition>.)
Explicit interface implemetationPrivate method System#Collections#IDictionary#Remove Removes the element with the specified key from the IDictionary. (Inherited from Dictionary<Guid, Partition>.)
Explicit interface implemetationPrivate property System#Collections#ICollection#SyncRoot Gets an object that can be used to synchronize access to the ICollection. (Inherited from Dictionary<Guid, Partition>.)
Explicit interface implemetationPrivate property System#Collections#Generic#IDictionary{TKey@TValue}#Values Gets an ICollection containing the values in the IDictionary. (Inherited from Dictionary<Guid, Partition>.)
Explicit interface implemetationPrivate property System#Collections#Generic#IReadOnlyDictionary{TKey@TValue}#Values Gets a collection containing the values of the IReadOnlyDictionary. (Inherited from Dictionary<Guid, Partition>.)
Explicit interface implemetationPrivate property System#Collections#IDictionary#Values Gets an ICollection containing the values in the IDictionary. (Inherited from Dictionary<Guid, Partition>.)

Top

Remarks

This is a dictionary collection of partitions with the remove method overridden to also remove the partition from the PartitionsAlternate collection of the store.

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

Reference

Microsoft.VisualStudio.Modeling Namespace