BsonMemberMapSetDefaultValue Method (FuncObject) |
Sets the default value creator.
Namespace:
MongoDB.Bson.Serialization
Assembly:
MongoDB.Bson (in MongoDB.Bson.dll) Version: 2.19.1+3a2a09dd959482f665ffbb5df2557ec541597af4
Syntax public BsonMemberMap SetDefaultValue(
Func<Object> defaultValueCreator
)
Public Function SetDefaultValue (
defaultValueCreator As Func(Of Object)
) As BsonMemberMap
member SetDefaultValue :
defaultValueCreator : Func<Object> -> BsonMemberMap
Parameters
- defaultValueCreator
- Type: SystemFuncObject
The default value creator (note: the supplied delegate must be thread safe).
Return Value
Type:
BsonMemberMapThe member map.
See Also