![]() | BsonReader Class |
Note: This API is now obsolete.
Namespace: Newtonsoft.Json.Bson
[ObsoleteAttribute("BSON reading and writing has been moved to its own package. See https://www.nuget.org/packages/Newtonsoft.Json.Bson for more details.")] public class BsonReader : JsonReader
The BsonReader type exposes the following members.
Name | Description | |
---|---|---|
![]() | BsonReader(BinaryReader) |
Initializes a new instance of the BsonReader class.
|
![]() | BsonReader(Stream) |
Initializes a new instance of the BsonReader class.
|
![]() | BsonReader(BinaryReader, Boolean, DateTimeKind) |
Initializes a new instance of the BsonReader class.
|
![]() | BsonReader(Stream, Boolean, DateTimeKind) |
Initializes a new instance of the BsonReader class.
|
Name | Description | |
---|---|---|
![]() | CloseInput |
Gets or sets a value indicating whether the source should be closed when this 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.) |
![]() | DateFormatString |
Gets or sets how custom date formatted strings are parsed when reading JSON.
(Inherited from JsonReader.) |
![]() | DateParseHandling |
Gets or sets 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 |
Gets or sets how DateTime time zones are handled when reading JSON.
(Inherited from JsonReader.) |
![]() | Depth |
Gets the depth of the current token in the JSON document.
(Inherited from JsonReader.) |
![]() | FloatParseHandling |
Gets or sets how floating point numbers, e.g. 1.0 and 9.9, are parsed when reading JSON text.
(Inherited from JsonReader.) |
![]() | JsonNet35BinaryCompatibility | Obsolete.
Gets or sets a value indicating whether binary data reading should be 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.) |
![]() | 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.) |
![]() | ReadRootValueAsArray |
Gets or sets a value indicating whether the root object will be read as a JSON array.
|
![]() | SupportMultipleContent |
Gets or sets a value indicating whether multiple pieces of JSON content can
be read from a continuous stream without erroring.
(Inherited from JsonReader.) |
![]() | TokenType |
Gets the type of the current JSON token.
(Inherited from JsonReader.) |
![]() | Value |
Gets the text value of the current JSON token.
(Inherited from JsonReader.) |
![]() | ValueType |
Gets the .NET type for the current JSON token.
(Inherited from JsonReader.) |
Name | Description | |
---|---|---|
![]() | Close |
Changes the reader's state to Closed.
If CloseInput is set to true, the underlying Stream is also closed.
(Overrides JsonReaderClose.) |
![]() | Dispose |
Releases unmanaged and - optionally - managed resources.
(Inherited from JsonReader.) |
![]() | Equals | Determines whether the specified object is equal to the current object. (Inherited from Object.) |
![]() | Finalize | Allows an object to try to free resources and perform other cleanup operations before it is reclaimed by garbage collection. (Inherited from Object.) |
![]() | GetHashCode | Serves as the default hash function. (Inherited from Object.) |
![]() | GetType | Gets the Type of the current instance. (Inherited from Object.) |
![]() | MemberwiseClone | Creates a shallow copy of the current Object. (Inherited from Object.) |
![]() | Read |
Reads the next JSON token from the underlying Stream.
(Overrides JsonReaderRead.) |
![]() | ReadAsBoolean | (Inherited from JsonReader.) |
![]() | ReadAsBooleanAsync | (Inherited from JsonReader.) |
![]() | ReadAsBytes |
Reads the next JSON token from the source as a Byte[].
(Inherited from JsonReader.) |
![]() | ReadAsBytesAsync |
Asynchronously reads the next JSON token from the source as a Byte[].
(Inherited from JsonReader.) |
![]() | ReadAsDateTime | (Inherited from JsonReader.) |
![]() | ReadAsDateTimeAsync | (Inherited from JsonReader.) |
![]() | ReadAsDateTimeOffset |
Reads the next JSON token from the source as a NullableT of DateTimeOffset.
(Inherited from JsonReader.) |
![]() | ReadAsDateTimeOffsetAsync |
Asynchronously reads the next JSON token from the source as a NullableT of DateTimeOffset.
(Inherited from JsonReader.) |
![]() | ReadAsDecimal | (Inherited from JsonReader.) |
![]() | ReadAsDecimalAsync | (Inherited from JsonReader.) |
![]() | ReadAsDouble | (Inherited from JsonReader.) |
![]() | ReadAsDoubleAsync | (Inherited from JsonReader.) |
![]() | ReadAsInt32 | (Inherited from JsonReader.) |
![]() | ReadAsInt32Async | (Inherited from JsonReader.) |
![]() | ReadAsString |
Reads the next JSON token from the source as a String.
(Inherited from JsonReader.) |
![]() | ReadAsStringAsync |
Asynchronously reads the next JSON token from the source as a String.
(Inherited from JsonReader.) |
![]() | ReadAsync |
Asynchronously reads the next JSON token from the source.
(Inherited from JsonReader.) |
![]() | 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.) |
![]() | SetToken(JsonToken, Object, Boolean) |
Sets the current token and value.
(Inherited from JsonReader.) |
![]() | Skip |
Skips the children of the current token.
(Inherited from JsonReader.) |
![]() | SkipAsync |
Asynchronously skips the children of the current token.
(Inherited from JsonReader.) |
![]() | ToString | Returns a string that represents the current object. (Inherited from Object.) |