Click or drag to resize

BsonTrieTValueTryGetValue Method (String, TValue)

Gets the value associated with the specified element name.

Namespace:  MongoDB.Bson.IO
Assembly:  MongoDB.Bson (in MongoDB.Bson.dll) Version: 2.16.0+eeafbea0921243a5868b81984e1083a07c1f75bc
Syntax
public bool TryGetValue(
	string elementName,
	out TValue value
)

Parameters

elementName
Type: SystemString
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