Click or drag to resize

DateTimeSerializerSerialize Method

Serializes a value.

Namespace:  MongoDB.Bson.Serialization.Serializers
Assembly:  MongoDB.Bson (in MongoDB.Bson.dll) Version: 2.11.0+cb27a82ea70620ad1acad8058809be8302ae4f2a
Syntax
public override void Serialize(
	BsonSerializationContext context,
	BsonSerializationArgs args,
	DateTime value
)

Parameters

context
Type: MongoDB.Bson.SerializationBsonSerializationContext
The serialization context.
args
Type: MongoDB.Bson.SerializationBsonSerializationArgs
The serialization args.
value
Type: SystemDateTime
The object.

Implements

IBsonSerializerTValueSerialize(BsonSerializationContext, BsonSerializationArgs, TValue)
See Also