Json.NET - Quick Starts & API Documentation
DateTimeKindHandling Property
Namespaces ► Newtonsoft.Json.Bson ► BsonWriter ► DateTimeKindHandling
Gets or sets the DateTimeKind used when writing DateTime values to BSON.
When set to Unspecified no conversion will occur.
Declaration Syntax
C# | Visual Basic | Visual C++ |
public DateTimeKind DateTimeKindHandling { get; set; }
Public Property DateTimeKindHandling As DateTimeKind Get Set
public: property DateTimeKind DateTimeKindHandling { DateTimeKind get (); void set (DateTimeKind value); }
Value
The DateTimeKind used when writing DateTime values to BSON.