Click or drag to resize
Json.NET

BsonReader Constructor (BinaryReader, Boolean, DateTimeKind)

 
Initializes a new instance of the BsonReader class.

Namespace:  Newtonsoft.Json.Bson
Assembly:  Newtonsoft.Json (in Newtonsoft.Json.dll) Version: 12.0.1+509643a8952ce731e0207710c429ad6e67dc43db
Syntax
C#
public BsonReader(
	BinaryReader reader,
	bool readRootValueAsArray,
	DateTimeKind dateTimeKindHandling
)

Parameters

reader
Type: System.IOBinaryReader
The BinaryReader containing the BSON data to read.
readRootValueAsArray
Type: SystemBoolean
if set to true the root object will be read as a JSON array.
dateTimeKindHandling
Type: SystemDateTimeKind
The DateTimeKind used when reading DateTime values from BSON.
See Also