Click or drag to resize

BsonTrieTValueTryGetValue Method (ArraySegmentByte, TValue)

Gets the value associated with the specified element name.

Namespace:  MongoDB.Bson.IO
Assembly:  MongoDB.Bson (in MongoDB.Bson.dll) Version: 2.7.3+Branch.v2.7.x.Sha.2f1f2be13a23b8520cb9c2ee8439c022f9a03efe
Syntax
public bool TryGetValue(
	ArraySegment<byte> utf8,
	out TValue value
)

Parameters

utf8
Type: SystemArraySegmentByte
The element name.
value
Type: TValue
When this method returns, contains the value associated with the specified element name, if the key is found; otherwise, the default value for the type of the value parameter. This parameter is passed unitialized.

Return Value

Type: Boolean
True if the value was found; otherwise, false.
See Also