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
kind
DateTimeKindThe 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
kind
DateTimeKindThe DateTimeKind.
representation
BsonTypeThe representation.
Returns
- DateTimeSerializer
The reconfigured serializer.