 | IReadOnlyDictionaryTKey, TValueTryGetValue Method |
Gets the value that is associated with the specified key.
Namespace:
EBP.Api.Misc
Assembly:
EBP.Api (in EBP.Api.dll) Version: 1.0.2835.45 (1.0.2835.45)
Syntaxbool TryGetValue(
TKey key,
out TValue value
)
Function TryGetValue (
key As TKey,
<OutAttribute> ByRef value As TValue
) As Boolean
Parameters
- key
- Type: TKey
The key to locate. - value
- Type: TValue
When this method returns, the value associated with the specified key, if the key is found; otherwise, the default value for the type of the value parameter. This parameter is passed uninitialized.
Return Value
Type:
Booleantrue if the object that implements the
IReadOnlyDictionaryTKey, TValue interface contains an element that has the specified key; otherwise, false.
See Also