Gets or sets value with the specified key.
Syntax
| Visual Basic (Declaration) | |
|---|
Public Overridable Default Property Item( _
ByVal key As TKey _
) As TValue |
| Visual Basic (Usage) | Copy Code |
|---|
Dim instance As ThreadSafeDictionary(Of TKey,TValue)
Dim key As TKey
Dim value As TValue
instance.Item(key) = value
value = instance.Item(key)
|
| C# | |
|---|
public virtual TValue this[
TKey key
]; {get; set;} |
| C++/CLI | |
|---|
public:
virtual property TValue default [TKey] {
TValue get(TKey key);
void set (TKey key, TValue value);
} |
Parameters
- key
- Parameter containing the TKey value.
Return Value
The dictionary value.
Requirements
Target Platforms: Microsoft .NET Framework 3.0, Windows XP, Windows Server 2003 family, Windows Server 2008 family
See Also