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.
Parameters
kind
DateTime Kind The DateTimeKind.
Returns
- Date
Time Serializer The reconfigured serializer.
WithKind(DateTimeKind, BsonType)
Returns a serializer that has been reconfigured with the specified DateTimeKind value and representation.
Parameters
kind
DateTime Kind The DateTimeKind.
representation
BsonType The representation.
Returns
- Date
Time Serializer The reconfigured serializer.