Click or drag to resize

FileBackedDictionary<TKey, TValue> .TryGetValue Method

Gets the value associated with the specified key.

Namespace: GSF.Collections
Assembly: GSF.Core (in GSF.Core.dll) Version: 2.4.244-beta+cf93f5f8aea4b941e9b426fe4e180c2bd85d31a2
Syntax
public bool TryGetValue(
	TKey key,
	out TValue value
)
View Source

Parameters

key  TKey
The key whose value to get.
value  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

Boolean
true if the object that implements FileBackedDictionary<TKey, TValue> contains an element with the specified key; otherwise, false.

Implements

IDictionary<TKey, TValue>.TryGetValue(TKey, TValue)
Exceptions
ExceptionCondition
ArgumentNullExceptionkey is null.
See Also