RawBsonDocumentGetValue Method (String, BsonValue) | 
 
            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.19.1+3a2a09dd959482f665ffbb5df2557ec541597af4
Syntaxpublic override BsonValue GetValue(
	string name,
	BsonValue defaultValue
)
Public Overrides Function GetValue ( 
	name As String,
	defaultValue As BsonValue
) As BsonValue
abstract GetValue : 
        name : string * 
        defaultValue : BsonValue -> BsonValue 
override GetValue : 
        name : string * 
        defaultValue : BsonValue -> BsonValue Parameters
- name
 - Type: SystemString
The name of the element. - defaultValue
 - Type: MongoDB.BsonBsonValue
The default value returned if the element is not found. 
Return Value
Type: 
BsonValue
            The value of the element or the default value if the element is not found.
            
See Also