BsonReader Class

Json.NET

Json.NET - Quick Starts & API Documentation BsonReader Class
NamespacesNewtonsoft.Json.BsonBsonReader
Represents a reader that provides fast, non-cached, forward-only access to serialized Json data.
Declaration Syntax
C# Visual Basic Visual C++
public class BsonReader : JsonReader
Public Class BsonReader _
	Inherits JsonReader
public ref class BsonReader : public JsonReader
Members
All Members Constructors Methods Properties



Icon Member Description
BsonReader(Stream)
Initializes a new instance of the BsonReader class.

BsonReader(BinaryReader)
Initializes a new instance of the BsonReader class.

BsonReader(Stream, Boolean, DateTimeKind)
Initializes a new instance of the BsonReader class.

BsonReader(BinaryReader, Boolean, DateTimeKind)
Initializes a new instance of the BsonReader class.

Close()()()()
Changes the JsonReader..::..State to Closed.
(Overrides JsonReader.Close()()()().)
CloseInput
Gets or sets a value indicating whether the underlying stream or TextReader should be closed when the reader is closed.
(Inherited from JsonReader.)
Culture
Gets or sets the culture used when reading JSON. Defaults to InvariantCulture.
(Inherited from JsonReader.)
CurrentState
Gets the current reader state.
(Inherited from JsonReader.)
DateParseHandling
Get or set how date formatted strings, e.g. "\/Date(1198908717056)\/" and "2012-03-21T05:40Z", are parsed when reading JSON.
(Inherited from JsonReader.)
DateTimeKindHandling
Gets or sets the DateTimeKind used when reading DateTime values from BSON.

DateTimeZoneHandling
Get or set how DateTime time zones are handling when reading JSON.
(Inherited from JsonReader.)
Depth
Gets the depth of the current token in the JSON document.
(Inherited from JsonReader.)
Dispose(Boolean)
Releases unmanaged and - optionally - managed resources
(Inherited from JsonReader.)
Equals(Object)
Determines whether the specified Object is equal to the current Object.
(Inherited from Object.)
Finalize()()()()
Allows an Object to attempt to free resources and perform other cleanup operations before the Object is reclaimed by garbage collection.
(Inherited from Object.)
GetHashCode()()()()
Serves as a hash function for a particular type.
(Inherited from Object.)
GetType()()()()
Gets the Type of the current instance.
(Inherited from Object.)
JsonNet35BinaryCompatibility
Gets or sets a value indicating whether binary data reading should compatible with incorrect Json.NET 3.5 written binary.

MaxDepth
Gets or sets the maximum depth allowed when reading JSON. Reading past this depth will throw a JsonReaderException.
(Inherited from JsonReader.)
MemberwiseClone()()()()
Creates a shallow copy of the current Object.
(Inherited from Object.)
Path
Gets the path of the current JSON token.
(Inherited from JsonReader.)
QuoteChar
Gets the quotation mark character used to enclose the value of a string.
(Inherited from JsonReader.)
Read()()()()
Reads the next JSON token from the stream.
(Overrides JsonReader.Read()()()().)
ReadAsBytes()()()()
Reads the next JSON token from the stream as a array<Byte>[]()[][].
(Overrides JsonReader.ReadAsBytes()()()().)
ReadAsDateTime()()()()
Reads the next JSON token from the stream as a Nullable<(Of <(<'T>)>)>.
(Overrides JsonReader.ReadAsDateTime()()()().)
ReadAsDateTimeOffset()()()()
Reads the next JSON token from the stream as a Nullable<(Of <(<'T>)>)>.
(Overrides JsonReader.ReadAsDateTimeOffset()()()().)
ReadAsDecimal()()()()
Reads the next JSON token from the stream as a Nullable<(Of <(<'T>)>)>.
(Overrides JsonReader.ReadAsDecimal()()()().)
ReadAsInt32()()()()
Reads the next JSON token from the stream as a Nullable<(Of <(<'T>)>)>.
(Overrides JsonReader.ReadAsInt32()()()().)
ReadAsString()()()()
Reads the next JSON token from the stream as a String.
(Overrides JsonReader.ReadAsString()()()().)
ReadRootValueAsArray
Gets or sets a value indicating whether the root object will be read as a JSON array.

SetStateBasedOnCurrent()()()()
Sets the state based on current token type.
(Inherited from JsonReader.)
SetToken(JsonToken)
Sets the current token.
(Inherited from JsonReader.)
SetToken(JsonToken, Object)
Sets the current token and value.
(Inherited from JsonReader.)
Skip()()()()
Skips the children of the current token.
(Inherited from JsonReader.)
TokenType
Gets the type of the current JSON token.
(Inherited from JsonReader.)
ToString()()()()
Returns a String that represents the current Object.
(Inherited from Object.)
Value
Gets the text value of the current JSON token.
(Inherited from JsonReader.)
ValueType
Gets The Common Language Runtime (CLR) type for the current JSON token.
(Inherited from JsonReader.)
Inheritance Hierarchy
Object
JsonReader
  BsonReader

Assembly: Newtonsoft.Json (Module: Newtonsoft.Json) Version: 4.5.0.0 (4.5.6.14930)