Property this
this[int]
Gets or sets a value by position.
public override BsonValue this[int index] { get; set; }Parameters
- indexint
- The 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
- namestring
- The name of the element. 
- defaultValueBsonValue
- The 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
- namestring
- The name. 
Property Value
- BsonValue
- The value.