BsonWriter.WriteDateTime Method (original) (raw)

MongoDB .NET Driver API Documentation

Click or drag to resizeClick or drag to resize

BsonWriterWriteDateTime Method

Writes a BSON DateTime to the writer.

Namespace: MongoDB.Bson.IO
Assembly: MongoDB.Bson (in MongoDB.Bson.dll) Version: 2.10.0+569905ff5e778c38ea19d9d0392496a83e1704ed

Syntax

public abstract void WriteDateTime( long value )

Public MustOverride Sub WriteDateTime ( value As Long )

abstract WriteDateTime : value : int64 -> unit

Parameters

value

Type: SystemInt64
The number of milliseconds since the Unix epoch.

Implements

IBsonWriterWriteDateTime(Int64)

See Also

Reference