Table of Contents

Method GetElement

Namespace
MongoDB.Bson
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

BsonElement

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

BsonElement

A BsonElement.