Table of Contents

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 bool

if set to true [date only].

DateTimeSerializer(bool, BsonType)

Initializes a new instance of the DateTimeSerializer class.

public DateTimeSerializer(bool dateOnly, BsonType representation)

Parameters

dateOnly bool

if set to true [date only].

representation BsonType

The representation.

DateTimeSerializer(BsonType)

Initializes a new instance of the DateTimeSerializer class.

public DateTimeSerializer(BsonType representation)

Parameters

representation BsonType

The representation.

DateTimeSerializer(DateTimeKind)

Initializes a new instance of the DateTimeSerializer class.

public DateTimeSerializer(DateTimeKind kind)

Parameters

kind DateTimeKind

The kind.

DateTimeSerializer(DateTimeKind, BsonType)

Initializes a new instance of the DateTimeSerializer class.

public DateTimeSerializer(DateTimeKind kind, BsonType representation)

Parameters

kind DateTimeKind

The kind.

representation BsonType

The representation.