Method WithKind
- Namespace
- MongoDB.Bson.Serialization.Serializers
- Assembly
- MongoDB.Bson.dll
WithKind(DateTimeKind)
Returns a serializer that has been reconfigured with the specified DateTimeKind value.
public DateTimeSerializer WithKind(DateTimeKind kind)Parameters
- kindDateTimeKind
- The DateTimeKind. 
Returns
- DateTimeSerializer
- The reconfigured serializer. 
WithKind(DateTimeKind, BsonType)
Returns a serializer that has been reconfigured with the specified DateTimeKind value and representation.
public DateTimeSerializer WithKind(DateTimeKind kind, BsonType representation)Parameters
- kindDateTimeKind
- The DateTimeKind. 
- representationBsonType
- The representation. 
Returns
- DateTimeSerializer
- The reconfigured serializer.