BsonMemberMapSetDefaultValue Method (FuncObject) |
Sets the default value creator.
Namespace:
MongoDB.Bson.Serialization
Assembly:
MongoDB.Bson (in MongoDB.Bson.dll) Version: 2.12.2+a4a3888f4fb51bb518b1eb5002effc2d47f2ea6a
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