Constructor DateTimeSerializer
- Namespace
- MongoDB.Bson.Serialization.Serializers
- Assembly
- MongoDB.Bson.dll
DateTimeSerializer()
Initializes a new instance of the DateTimeSerializer class.
public DateTimeSerializer()
DateTimeSerializer(bool)
Initializes a new instance of the DateTimeSerializer class.
public DateTimeSerializer(bool dateOnly)
Parameters
dateOnly
boolif set to
true
[date only].
DateTimeSerializer(bool, BsonType)
Initializes a new instance of the DateTimeSerializer class.
public DateTimeSerializer(bool dateOnly, BsonType representation)
Parameters
DateTimeSerializer(BsonType)
Initializes a new instance of the DateTimeSerializer class.
public DateTimeSerializer(BsonType representation)
Parameters
representation
BsonTypeThe representation.
DateTimeSerializer(DateTimeKind)
Initializes a new instance of the DateTimeSerializer class.
public DateTimeSerializer(DateTimeKind kind)
Parameters
kind
DateTimeKindThe kind.
DateTimeSerializer(DateTimeKind, BsonType)
Initializes a new instance of the DateTimeSerializer class.
public DateTimeSerializer(DateTimeKind kind, BsonType representation)
Parameters
kind
DateTimeKindThe kind.
representation
BsonTypeThe representation.