ReadOnlyDictionary<K,V>.Item[K] Property
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Gets the element with the specified key.
public:
property V default[K] { V get(K key); void set(K key, V value); };
public V this[K key] { get; set; }
member this.Item('K) : 'V with get, set
Default Public Property Item(key As K) As V
Parameters
- key
- K
The key of the element to get.
Property Value
V
The element with the specified key.
Implements
Exceptions
Thrown when an attempt is made to set this property.
Thrown when key is null.
Thrown when the property is retrieved and no key is found.