ReadOnlyDictionary(Of TKey, TValue).IDictionary(Of TKey, TValue).Item Property
[ This article is for Windows Phone 8 developers. If you’re developing for Windows 10, see the latest documentation. ]
Gets the element with the specified key.
Assembly: mscorlib (in mscorlib.dll)
'Declaration Private Property Item ( _ key As TKey _ ) As TValue Implements IDictionary(Of TKey, TValue).Item
Parameters
- key
- Type: TKey
The key of the element to get or set.
Implements
IDictionary(Of TKey, TValue).Item(TKey)| Exception | Condition |
|---|---|
| ArgumentNullException | key is Nothing. |
| KeyNotFoundException | The property is retrieved and key is not found. |
| NotSupportedException | The property is set. |
This member is an explicit interface member implementation. It can be used only when the ReadOnlyDictionary(Of TKey, TValue) instance is cast to an IDictionary(Of TKey, TValue) interface.
Show: