Method GetElement
| MongoDB CSharp Driver API Reference (original) (raw)
Table of Contents
Namespace
Assembly
MongoDB.Bson.dll
GetElement(int)
Gets an element of this document.
public virtual BsonElement GetElement(int index)
Parameters
index
int
The zero based index of the element.
Returns
The element.
GetElement(string)
Gets an element of this document.
public virtual BsonElement GetElement(string name)
Parameters
name
string
The name of the element.
Returns
A BsonElement.