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