Method TryGetElement
TryGetElement(string, out BsonElement)
Tries to get an element of this document.
public virtual bool TryGetElement(string name, out BsonElement value)
Parameters
name
stringThe name of the element.
value
BsonElementThe element.
Returns
- bool
True if an element with that name was found.