PersistentDictionaryTKey, TValueTryGetValue Method |
Gets the value in the dictionary corresponding to the given key.
Namespace:
AGI.Foundation.Infrastructure.Threading
Assembly:
AGI.Foundation.Core (in AGI.Foundation.Core.dll) Version: 24.3.420.0 (24.3.420.0)
Syntax public abstract bool TryGetValue(
TKey key,
out TValue value
)
Public MustOverride Function TryGetValue (
key As TKey,
<OutAttribute> ByRef value As TValue
) As Boolean
public:
virtual bool TryGetValue(
TKey key,
[OutAttribute] TValue% value
) abstract
abstract TryGetValue :
key : 'TKey *
value : 'TValue byref -> bool
Parameters
- key
- Type: TKey
The key of the item to retrieve from the dictionary. - value
- Type: TValue
On return,
the value corresponding to the key.
Return Value
Type:
Boolean if the key was found in the dictionary; otherwise
.
See Also