|
ImmutableDictionaryTKey, TValueItem Property
|
Gets or sets the element with the specified key.
Namespace: GSF.ImmutableAssembly: GSF.Core (in GSF.Core.dll) Version: 2.4.257-beta+00aa2366fbb9ec75f636ebc7cfa610e3826a727c
Syntaxpublic TValue this[
TKey key
] { get; set; }Public Default Property Item (
key As TKey
) As TValue
Get
Set
public:
virtual property TValue default[TKey key] {
TValue get (TKey key) sealed;
void set (TKey key, TValue value) sealed;
}abstract Item : 'TValue with get, set
override Item : 'TValue with get, set
function get_Item(key);
function set_Item(value);
View SourceParameters
- key TKey
- The key of the element to get or set.
Return Value
TValueThe element with the specified key.
Implements
IDictionaryTKey, TValueItemTKey
Exceptions| Exception | Condition |
|---|
| ArgumentNullException | key is null. |
| KeyNotFoundException | The property is retrieved and key is not found. |
| NotSupportedException | The property is set and the IDictionaryTKey, TValue is read-only. |
See Also