Click or drag to resize

BsonTrie<TValue>.TryGetNode Method (BsonStream, BsonTrieNode<TValue>)

Tries to get the node associated with a name read from a stream.

Namespace:  MongoDB.Bson.IO
Assembly:  MongoDB.Bson (in MongoDB.Bson.dll) Version: 2.16.0+eeafbea0921243a5868b81984e1083a07c1f75bc
Syntax
public bool TryGetNode(
	BsonStream stream,
	out BsonTrieNode<TValue> node
)

Parameters

stream
Type: MongoDB.Bson.IO.BsonStream
The stream.
node
Type: MongoDB.Bson.IO.BsonTrieNode<TValue>
The node.

Return Value

Type: Boolean
True if the node was found. If the node was found the stream is advanced over the name, otherwise the stream is repositioned to the beginning of the name.
See Also