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.5.0+57.Branch.master.Sha.6a4e00a2d91090c65a9b11364b9ebfdb9c7da076
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