Table of Contents

Method TryGetElement

Namespace
MongoDB.Bson
Assembly
MongoDB.Bson.dll

TryGetElement(string, out BsonElement)

Tries to get an element of this document.

public override bool TryGetElement(string name, out BsonElement element)

Parameters

name string

The name of the element.

element BsonElement

The element.

Returns

bool

True if an element with that name was found.