Property this
this[int]
Gets or sets a value by position.
Parameters
index
intThe position.
Property Value
- Bson
Value 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 override BsonValue this[string name, BsonValue defaultValue] { get; }
Parameters
name
stringThe name of the element.
defaultValue
BsonValue The default value to return if the element is not found.
Property Value
- Bson
Value Teh value of the element or a default value if the element is not found.
this[string]
Gets or sets a value by name.
Parameters
name
stringThe name.
Property Value
- Bson
Value The value.