| BsonDocumentItem Property (String, BsonValue) | 
 Note: This API is now obsolete.
            Gets the value of an element or a default value if the element is not found.
            
 
    Namespace: 
   MongoDB.Bson
    Assembly:
   MongoDB.Bson (in MongoDB.Bson.dll) Version: 2.12.2+a4a3888f4fb51bb518b1eb5002effc2d47f2ea6a
 Syntax
Syntax[ObsoleteAttribute("Use GetValue(string name, BsonValue defaultValue) instead.")]
public virtual BsonValue this[
	string name,
	BsonValue defaultValue
] { get; }<ObsoleteAttribute("Use GetValue(string name, BsonValue defaultValue) instead.")>
Public Overridable ReadOnly Default Property Item ( 
	name As String,
	defaultValue As BsonValue
) As BsonValue
	Get[<ObsoleteAttribute("Use GetValue(string name, BsonValue defaultValue) instead.")>]
abstract Item : BsonValue with get
[<ObsoleteAttribute("Use GetValue(string name, BsonValue defaultValue) instead.")>]
override Item : BsonValue with getParameters
- name
- Type: SystemString
 The name of the element.
- defaultValue
- Type: MongoDB.BsonBsonValue
 The default value to return if the element is not found.
Return Value
Type: 
BsonValueTeh value of the element or a default value if the element is not found.
 See Also
See Also