ReadOnlyDictionary<K, V> Members

Include Protected Members
Include Inherited Members

Represents a generic read-only collection of key/value pairs.

The ReadOnlyDictionary<K, V> type exposes the following members.

Properties

  Name Description
Public property Count Gets the number of elements contained in the ReadOnlyDictionary.
Public property IsReadOnly Always returns true as ReadOnlyDictionary is read-only.
Public property Item Gets the element with the specified key.
Public property Keys Gets an System.Collections.Generic.ICollection containing the keys of the ReadOnlyDictionary.
Public property Values Gets an System.Collections.Generic.ICollection containing the values of the ReadOnlyDictionary.

Top

Methods

  Name Description
Public method Add Not supported. An entry cannot be added to a ReadOnlyDictionary instance.
Public method Contains Determines whether the ReadOnlyDictionary contains an item.
Public method ContainsKey Determines whether the ReadOnlyDictionary contains an element with the specified key.
Public method CopyTo Copies the elements of the ReadOnlyDictionary to an System.Array, starting at a particular System.Array index.
Public method Equals (inherited from Object)
Protected method Finalize (inherited from Object)
Public method GetHashCode (inherited from Object)
Public method GetType (inherited from Object)
Protected method MemberwiseClone (inherited from Object)
Public method Remove It will always throw System.NotSupportedException as ReadOnlyDictionary is read-only.
Public method ToString (inherited from Object)
Public method TryGetValue Gets the element with the specified key.

Top

Explicit Interface Implementations

  Name Description
Explicit interface implemetationPrivate method ICollection<KeyValuePair<K, V>>.Add
Explicit interface implemetationPrivate method ICollection<KeyValuePair<K, V>>.Clear
Explicit interface implemetationPrivate method IEnumerable<KeyValuePair<K, V>>.GetEnumerator
Explicit interface implemetationPrivate method IEnumerable.GetEnumerator Returns an enumerator that iterates through the collection.
Explicit interface implemetationPrivate method ICollection<KeyValuePair<K, V>>.Remove

Top

See Also

Reference

ReadOnlyDictionary<K, V> Class

Microsoft.Rtc.Collaboration.AudioVideo Namespace