Method WithKind
| MongoDB CSharp Driver API Reference (original) (raw)
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
DateTimeKind
The DateTimeKind.
Returns
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
DateTimeKind
The DateTimeKind.
representation
BsonType
The representation.
Returns
The reconfigured serializer.