BsonMemberMapSetDefaultValue Method (FuncObject) |
Sets the default value creator.
Namespace:
MongoDB.Bson.Serialization
Assembly:
MongoDB.Bson (in MongoDB.Bson.dll) Version: 2.5.0+57.Branch.master.Sha.6a4e00a2d91090c65a9b11364b9ebfdb9c7da076
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