CacheTKey, TValueItem Property |
Gets the value associated with the specified key.
Namespace: Lextm.SharpSnmpLib.SecurityAssembly: SharpSnmpLib (in SharpSnmpLib.dll) Version: 12.5.7-2+Branch.master.Sha.2a75ece2c9d55c4f731f356d1512c8a5d19fa096.2a75ece2c9d55c4f731f356d1512c8a5d19fa096
Syntaxpublic TValue this[
TKey key
] { get; }
Public ReadOnly Default Property Item (
key As TKey
) As TValue
Get
Dim instance As Cache
Dim key As TKey
Dim value As TValue
value = instance(key)
public:
property TValue default[TKey key] {
TValue get (TKey key);
}
member Item : 'TValue with get
Parameters
- key TKey
- The key of the value to get
Return Value
TValueThe 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.
Exceptions
See Also