.NET API
System.Collections.ObjectModel
ReadOnlyDictionary<TKey,TValue>
ReadOnlyDictionary<TKey,TValue> Class
System.Collections.ObjectModel
Represents a read-only collection of key/value pairs that is accessible by an index.
Syntax
Type Parameters
TKey
The type of the keys in the dictionary.
TValue
The type of the values in the dictionary.
Constructors
Properties
Methods
Determines whether the dictionary contains an element with the specified key.
Returns an enumerator that iterates through the dictionary.
Gets the value associated with the specified key.
Attempts to add the specified key and value to the dictionary.
Removes the element with the specified key from the dictionary.
Removes all keys and values from the dictionary.
Determines whether the dictionary contains the specified key/value pair.
Serves as a hash function for the current object.
Returns a string that represents the current object.
Determines whether the specified object is equal to the current object.
Allows an object to attempt to free resources and perform other cleanup operations before it is reclaimed by garbage collection.
Implemented Interfaces
Represents a generic read-only collection of key/value pairs.
Exposes an enumerator, which supports a simple iteration over a collection of a specified type.
Exposes an enumerator, which supports a simple iteration over a collection that does not support generic type parameters.
Derived Classes
There are no public derived classes that extend ReadOnlyDictionary<TKey,TValue>
in the .NET libraries.