Newtonsoft.Json.Bson Represents a BSON Oid (object id). Gets or sets the value of the Oid. The value of the Oid. Initializes a new instance of the class. The Oid value. Represents a reader that provides fast, non-cached, forward-only access to serialized BSON data. Asynchronously reads the next JSON token from the source. The token to monitor for cancellation requests. The default value is . A that represents the asynchronous read. The property returns true if the next token was read successfully; false if there are no more tokens to read. Derived classes must override this method to get asynchronous behaviour. Otherwise it will execute synchronously, returning an already-completed task. Asynchronous behaviour is also not available when the constructor was passed an instance of type derived from . Asynchronously reads the next JSON token from the source as a of . The token to monitor for cancellation requests. The default value is . A that represents the asynchronous read. The property returns the of . This result will be null at the end of an array. Derived classes must override this method to get asynchronous behaviour. Otherwise it will execute synchronously, returning an already-completed task. Asynchronous behaviour is also not available when the constructor was passed an instance of type derived from . Asynchronously reads the next JSON token from the source as a []. The token to monitor for cancellation requests. The default value is . A that represents the asynchronous read. The property returns the []. This result will be null at the end of an array. Derived classes must override this method to get asynchronous behaviour. Otherwise it will execute synchronously, returning an already-completed task. Asynchronous behaviour is also not available when the constructor was passed an instance of type derived from . Asynchronously reads the next JSON token from the source as a of . The token to monitor for cancellation requests. The default value is . A that represents the asynchronous read. The property returns the of . This result will be null at the end of an array. Derived classes must override this method to get asynchronous behaviour. Otherwise it will execute synchronously, returning an already-completed task. Asynchronous behaviour is also not available when the constructor was passed an instance of type derived from . Asynchronously reads the next JSON token from the source as a of . The token to monitor for cancellation requests. The default value is . A that represents the asynchronous read. The property returns the of . This result will be null at the end of an array. Derived classes must override this method to get asynchronous behaviour. Otherwise it will execute synchronously, returning an already-completed task. Asynchronous behaviour is also not available when the constructor was passed an instance of type derived from . Asynchronously reads the next JSON token from the source as a of . The token to monitor for cancellation requests. The default value is . A that represents the asynchronous read. The property returns the of . This result will be null at the end of an array. Derived classes must override this method to get asynchronous behaviour. Otherwise it will execute synchronously, returning an already-completed task. Asynchronous behaviour is also not available when the constructor was passed an instance of type derived from . Asynchronously reads the next JSON token from the source as a of . The token to monitor for cancellation requests. The default value is . A that represents the asynchronous read. The property returns the of . This result will be null at the end of an array. Derived classes must override this method to get asynchronous behaviour. Otherwise it will execute synchronously, returning an already-completed task. Asynchronous behaviour is also not available when the constructor was passed an instance of type derived from . Asynchronously reads the next JSON token from the source as a of . The token to monitor for cancellation requests. The default value is . A that represents the asynchronous read. The property returns the of . This result will be null at the end of an array. Derived classes must override this method to get asynchronous behaviour. Otherwise it will execute synchronously, returning an already-completed task. Asynchronous behaviour is also not available when the constructor was passed an instance of type derived from . Asynchronously reads the next JSON token from the source as a . The token to monitor for cancellation requests. The default value is . A that represents the asynchronous read. The property returns the . This result will be null at the end of an array. Derived classes must override this method to get asynchronous behaviour. Otherwise it will execute synchronously, returning an already-completed task. Asynchronous behaviour is also not available when the constructor was passed an instance of type derived from . Gets or sets a value indicating whether binary data reading should be compatible with incorrect Json.NET 3.5 written binary. true if binary data reading will be compatible with incorrect Json.NET 3.5 written binary; otherwise, false. Gets or sets a value indicating whether the root object will be read as a JSON array. true if the root object will be read as a JSON array; otherwise, false. Gets or sets the used when reading values from BSON. The used when reading values from BSON. Initializes a new instance of the class. The containing the BSON data to read. Initializes a new instance of the class. The containing the BSON data to read. Initializes a new instance of the class. The containing the BSON data to read. if set to true the root object will be read as a JSON array. The used when reading values from BSON. Initializes a new instance of the class. The containing the BSON data to read. if set to true the root object will be read as a JSON array. The used when reading values from BSON. Reads the next JSON token from the underlying . true if the next token was read successfully; false if there are no more tokens to read. Changes the reader's state to . If is set to true, the underlying is also closed. Represents a writer that provides a fast, non-cached, forward-only way of generating BSON data. Asynchronously flushes whatever is in the buffer to the destination and also flushes the destination. The token to monitor for cancellation requests. The default value is . A that represents the asynchronous operation. Because BSON documents are written as a single unit, only , and the final , or that finishes writing the document will write asynchronously. Derived classes will not write asynchronously. Asynchronously writes the end of the current JSON object or array. The token to monitor for cancellation requests. The default value is . A that represents the asynchronous operation. Because BSON documents are written as a single unit, only , and the final , or that finishes writing the document will write asynchronously. Derived classes will not write asynchronously. Asynchronously writes the end of an array. The token to monitor for cancellation requests. The default value is . A that represents the asynchronous operation. Because BSON documents are written as a single unit, only , and the final , or that finishes writing the document will write asynchronously. Derived classes will not write asynchronously. Asynchronously writes the end of a JSON object. The token to monitor for cancellation requests. The default value is . A that represents the asynchronous operation. Because BSON documents are written as a single unit, only , and the final , or that finishes writing the document will write asynchronously. Derived classes will not write asynchronously. Asynchronously closes this writer. If is set to true, the destination is also closed. The token to monitor for cancellation requests. The default value is . A that represents the asynchronous operation. Because BSON documents are written as a single unit, only , and the final , or that finishes writing the document will write asynchronously. Derived classes will not write asynchronously. Gets or sets the used when writing values to BSON. When set to no conversion will occur. The used when writing values to BSON. Initializes a new instance of the class. The to write to. Initializes a new instance of the class. The to write to. Flushes whatever is in the buffer to the underlying and also flushes the underlying stream. Writes the end. The token. Writes a comment /*...*/ containing the specified text. Text to place inside the comment. Writes the start of a constructor with the given name. The name of the constructor. Writes raw JSON. The raw JSON to write. Writes raw JSON where a value is expected and updates the writer's state. The raw JSON to write. Writes the beginning of a JSON array. Writes the beginning of a JSON object. Writes the property name of a name/value pair on a JSON object. The name of the property. Closes this writer. If is set to true, the underlying is also closed. If is set to true, the JSON is auto-completed. Writes a value. An error will raised if the value cannot be written as a single JSON token. The value to write. Writes a null value. Writes an undefined value. Writes a value. The value to write. Writes a value. The value to write. Writes a value. The value to write. Writes a value. The value to write. Writes a value. The value to write. Writes a value. The value to write. Writes a value. The value to write. Writes a value. The value to write. Writes a value. The value to write. Writes a value. The value to write. Writes a value. The value to write. Writes a value. The value to write. Writes a value. The value to write. Writes a value. The value to write. Writes a value. The value to write. Writes a value. The value to write. Writes a [] value. The [] value to write. Writes a value. The value to write. Writes a value. The value to write. Writes a value. The value to write. Writes a [] value that represents a BSON object id. The Object ID value to write. Writes a BSON regex. The regex pattern. The regex options. Converts a to and from JSON and BSON. Writes the JSON representation of the object. The to write to. The value. The calling serializer. Reads the JSON representation of the object. The to read from. Type of the object. The existing value of object being read. The calling serializer. The object value. Determines whether this instance can convert the specified object type. Type of the object. true if this instance can convert the specified object type; otherwise, false. Converts a to and from BSON. Writes the JSON representation of the object. The to write to. The value. The calling serializer. Reads the JSON representation of the object. The to read from. Type of the object. The existing value of object being read. The calling serializer. The object value. Determines whether this instance can convert the specified object type. Type of the object. true if this instance can convert the specified object type; otherwise, false.