Partilhar via


ReadOnlyDictionary<TKey, TValue> Members

Include Protected Members
Include Inherited 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 IEnumerable.GetEnumerator Gets the enumerator.

Top

See Also

Reference

ReadOnlyDictionary<TKey, TValue> Class

Microsoft.SharePoint.Taxonomy.Generic Namespace