ReadOnlyDictionary<K, V>.Item Property
Gets the element with the specified key.
Namespace: Microsoft.Rtc.Collaboration.AudioVideo
Assembly: Microsoft.Rtc.Collaboration (in Microsoft.Rtc.Collaboration.dll)
Syntax
'Declaration
Public Default Property Item ( _
key As K _
) As V
Get
Set
'Usage
Dim instance As ReadOnlyDictionary
Dim key As K
Dim value As V
value = instance(key)
instance(key) = value
public V this[
K key
] { get; set; }
Parameters
- key
Type: K
The key of the element to get.
Property Value
Type: V
The element with the specified key.
Implements
IDictionary<TKey, TValue>.Item[TKey]
Exceptions
Exception | Condition |
---|---|
NotSupportedException | Thrown when an attempt is made to set this property. |
ArgumentNullException | Thrown when key is null. |
KeyNotFoundException | Thrown when the property is retrieved and no key is found. |
See Also
Reference
ReadOnlyDictionary<K, V> Class