Table of Contents

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 DateTimeKind

The 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 DateTimeKind

The DateTimeKind.

representation BsonType

The representation.

Returns

DateTimeSerializer

The reconfigured serializer.