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.14.0+2b37a1fe1cbdbe1a020b52b77f1197b6d77575e7
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 uninitialized.

Return Value

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