Aerospike.Database.LINQPadDriver.Extensions Namespace
Aerospike LINDPad Driver

AValue..::..TryGetValue Method (Object, Boolean)

Returns AValue, only if there is a match based on matchValue and this AValue's Value. A match occurs when any of the following happens: Value is a IEnumerable or JArray and one of the elements matches matchValueValue is a IDictionary and the key matches matchValueValue is a KeyValuePair and the key matches matchValue If matchValue is a KeyValuePair, both the key and value must match Value is a String and matchValue is contained within Otherwise ValueEquals(Object) is applied against matchValue

Namespace:  Aerospike.Database.LINQPadDriver.Extensions
Assembly:  Aerospike.Database.LINQPadDriver (in Aerospike.Database.LINQPadDriver.dll)

Syntax


public AValue TryGetValue(
	Object matchValue,
	bool returnEmptyAValue
)

Parameters

matchValue
Type: Object
The value used to determine if a match occurred.
returnEmptyAValue
Type: Boolean
If true and if a match was not found, a null AValue will be returned.

Return Value

Returns the matched AValue. If no match found either Empty, or null is returned.