Gets or sets the value associated with the specified key.
public this[
]; {get; set;}
'Declaration
Public Default Property Item( _
ByVal As _
) As
'Usage
Dim instance As DictionaryWithEvents(Of TKey,TValue)
Dim key As
Dim value As
instance.Item(key) = value
value = instance.Item(key)
public: __property get_Item
;
public: __property void set_Item ,
;
public:
property default [TKey^] {
get( );
void set ( , value);
}
Parameters
- key
- The key of the value to get or set.
Property Value
The value associated with the specified key. If the specified key is not found, a get operation throws a
System.Collections.Generic.KeyNotFoundException, and a set operation creates a new element with the specified key.