Click or drag to resize

BsonDocumentInsertAt Method

Inserts a new element at a specified position.

Namespace:  MongoDB.Bson
Assembly:  MongoDB.Bson (in MongoDB.Bson.dll) Version: 2.11.0+cb27a82ea70620ad1acad8058809be8302ae4f2a
Syntax
public virtual void InsertAt(
	int index,
	BsonElement element
)

Parameters

index
Type: SystemInt32
The position of the new element.
element
Type: MongoDB.BsonBsonElement
The element.
See Also