Table of Contents

Property this

Namespace
MongoDB.Bson
Assembly
MongoDB.Bson.dll

this[int]

Gets or sets a value by position (only applies to BsonDocument and BsonArray).

public virtual BsonValue this[int index] { get; set; }

Parameters

index int

The position.

Property Value

BsonValue

The value.

this[string]

Gets or sets a value by name (only applies to BsonDocument).

public virtual BsonValue this[string name] { get; set; }

Parameters

name string

The name.

Property Value

BsonValue

The value.