BsonMemberMapSetDefaultValue Method (FuncObject) |
Sets the default value creator.
Namespace: MongoDB.Bson.SerializationAssembly: MongoDB.Bson (in MongoDB.Bson.dll) Version: 2.1.0
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