Property this
this[int]
Gets or sets a value by position.
public override BsonValue this[int index] { get; set; }
Parameters
index
intThe position.
Property Value
- BsonValue
The value.
this[string, BsonValue]
Gets the value of an element or a default value if the element is not found.
[Obsolete("Use GetValue(string name, BsonValue defaultValue) instead.")]
public virtual BsonValue this[string name, BsonValue defaultValue] { get; }
Parameters
name
stringThe name of the element.
defaultValue
BsonValueThe default value to return if the element is not found.
Property Value
- BsonValue
Teh value of the element or a default value if the element is not found.
this[string]
Gets or sets a value by name.
public override BsonValue this[string name] { get; set; }
Parameters
name
stringThe name.
Property Value
- BsonValue
The value.