Share via


ReadOnlyDictionary<TKey, TValue> members

Represents a read-only collection of keys and values.

The ReadOnlyDictionary<TKey, TValue> type exposes the following members.

Properties

  Name Description
Public property Count Gets the number of key/value pairs contained in the ReadOnlyDictionary
Public property IsReadOnly Indicates that this is a read-only dictionary
Public property Item Gets the value associated with the specified key.
Public property Keys Gets a collection containing the keys in the ReadOnlyDictionary
Public property Values Gets a collection containing the values in the ReadOnlyDictionary.

Top

Methods

  Name Description
Public method ContainsKey Determines whether this dictionary contains the specified dictionary key.
Public method Equals (Inherited from Object.)
Protected method Finalize (Inherited from Object.)
Public method GetEnumerator Returns an enumerator that iterates through the current ReadOnlyDictionary instance
Public method GetHashCode (Inherited from Object.)
Public method GetType (Inherited from Object.)
Protected method MemberwiseClone (Inherited from Object.)
Public method ToString (Inherited from Object.)
Public method TryGetValue Gets the value associated with the specified key.

Top

Explicit interface implementations

  Name Description
Explicit interface implemetationPrivate method ICollection<KeyValuePair<TKey, TValue>>.Add
Explicit interface implemetationPrivate method IDictionary<TKey, TValue>.Add
Explicit interface implemetationPrivate method IDictionary.Add
Explicit interface implemetationPrivate method ICollection<KeyValuePair<TKey, TValue>>.Clear
Explicit interface implemetationPrivate method IDictionary.Clear
Explicit interface implemetationPrivate method ICollection<KeyValuePair<TKey, TValue>>.Contains
Explicit interface implemetationPrivate method IDictionary.Contains
Explicit interface implemetationPrivate method ICollection<KeyValuePair<TKey, TValue>>.CopyTo
Explicit interface implemetationPrivate method ICollection.CopyTo
Explicit interface implemetationPrivate method IDictionary.GetEnumerator
Explicit interface implemetationPrivate method IEnumerable.GetEnumerator Gets the enumerator.
Explicit interface implemetationPrivate property IDictionary.IsFixedSize
Explicit interface implemetationPrivate property IDictionary.IsReadOnly
Explicit interface implemetationPrivate property ICollection.IsSynchronized
Explicit interface implemetationPrivate property IDictionary<TKey, TValue>.Item
Explicit interface implemetationPrivate property IDictionary.Item
Explicit interface implemetationPrivate property IDictionary.Keys
Explicit interface implemetationPrivate method ICollection<KeyValuePair<TKey, TValue>>.Remove
Explicit interface implemetationPrivate method IDictionary<TKey, TValue>.Remove
Explicit interface implemetationPrivate method IDictionary.Remove
Explicit interface implemetationPrivate property ICollection.SyncRoot
Explicit interface implemetationPrivate property IDictionary.Values

Top

See also

Reference

ReadOnlyDictionary<TKey, TValue> class

Microsoft.SharePoint.Taxonomy.Generic namespace