BsonStream Methods | 
The BsonStream type exposes the following members.
| Name | Description | |
|---|---|---|
| BeginRead | (Inherited from Stream.) | |
| BeginWrite | (Inherited from Stream.) | |
| Close | (Inherited from Stream.) | |
| CopyTo(Stream) | (Inherited from Stream.) | |
| CopyTo(Stream, Int32) | (Inherited from Stream.) | |
| CopyToAsync(Stream) | (Inherited from Stream.) | |
| CopyToAsync(Stream, Int32) | (Inherited from Stream.) | |
| CopyToAsync(Stream, Int32, CancellationToken) | (Inherited from Stream.) | |
| CreateObjRef | (Inherited from MarshalByRefObject.) | |
| CreateWaitHandle | Obsolete. (Inherited from Stream.) | |
| Dispose | (Inherited from Stream.) | |
| Dispose(Boolean) | (Inherited from Stream.) | |
| EndRead | (Inherited from Stream.) | |
| EndWrite | (Inherited from Stream.) | |
| Equals | (Inherited from Object.) | |
| Finalize | (Inherited from Object.) | |
| Flush | (Inherited from Stream.) | |
| FlushAsync | (Inherited from Stream.) | |
| FlushAsync(CancellationToken) | (Inherited from Stream.) | |
| GetHashCode | (Inherited from Object.) | |
| GetLifetimeService | (Inherited from MarshalByRefObject.) | |
| GetType | (Inherited from Object.) | |
| InitializeLifetimeService | (Inherited from MarshalByRefObject.) | |
| MemberwiseClone | (Inherited from Object.) | |
| MemberwiseClone(Boolean) | (Inherited from MarshalByRefObject.) | |
| ObjectInvariant | Obsolete. (Inherited from Stream.) | |
| Read | (Inherited from Stream.) | |
| ReadAsync(Byte, Int32, Int32) | (Inherited from Stream.) | |
| ReadAsync(Byte, Int32, Int32, CancellationToken) | (Inherited from Stream.) | |
| ReadByte | (Inherited from Stream.) | |
| ReadCString | 
            Reads a BSON CString from the stream.
              | |
| ReadCStringBytes | 
            Reads a BSON CString from the stream.
              | |
| ReadDecimal128 | 
            Reads a BSON Decimal128 from the stream.
              | |
| ReadDouble | 
            Reads a BSON double from the stream.
              | |
| ReadInt32 | 
            Reads a 32-bit BSON integer from the stream.
              | |
| ReadInt64 | 
            Reads a 64-bit BSON integer from the stream.
              | |
| ReadObjectId | 
            Reads a BSON ObjectId from the stream.
              | |
| ReadSlice | 
            Reads a raw length prefixed slice from the stream.
              | |
| ReadString | 
            Reads a BSON string from the stream.
              | |
| Seek | (Inherited from Stream.) | |
| SetLength | (Inherited from Stream.) | |
| SkipCString | 
            Skips over a BSON CString leaving the stream positioned just after the terminating null byte.
              | |
| ToString | (Inherited from Object.) | |
| Write | (Inherited from Stream.) | |
| WriteAsync(Byte, Int32, Int32) | (Inherited from Stream.) | |
| WriteAsync(Byte, Int32, Int32, CancellationToken) | (Inherited from Stream.) | |
| WriteByte | (Inherited from Stream.) | |
| WriteCString | 
            Writes a BSON CString to the stream.
              | |
| WriteCStringBytes | 
            Writes the CString bytes to the stream.
              | |
| WriteDecimal128 | 
            Writes a BSON Decimal128 to the stream.
              | |
| WriteDouble | 
            Writes a BSON double to the stream.
              | |
| WriteInt32 | 
            Writes a 32-bit BSON integer to the stream.
              | |
| WriteInt64 | 
            Writes a 64-bit BSON integer to the stream.
              | |
| WriteObjectId | 
            Writes a BSON ObjectId to the stream.
              | |
| WriteString | 
            Writes a BSON string to the stream.
              | 
| Name | Description | |
|---|---|---|
| BackpatchSize | 
            Backpatches the size.
              (Defined by BsonStreamExtensions.) | |
| ReadBinarySubType | 
            Reads the binary sub type.
              (Defined by BsonStreamExtensions.) | |
| ReadBoolean | 
            Reads a boolean from the stream.
              (Defined by BsonStreamExtensions.) | |
| ReadBsonType | 
            Reads the BSON type.
              (Defined by BsonStreamExtensions.) | |
| ReadBytes(Int32) | Overloaded.   
            Reads bytes from the stream.
              (Defined by BsonStreamExtensions.) | |
| ReadBytes(Byte, Int32, Int32) | Overloaded.   
            Reads bytes from the stream.
              (Defined by BsonStreamExtensions.) | |
| ToBson | 
            Serializes an object to a BSON byte array.
              (Defined by BsonExtensionMethods.) | |
| ToBsonDocument | 
            Serializes an object to a BsonDocument.
              (Defined by BsonExtensionMethods.) | |
| ToJson | 
            Serializes an object to a JSON string.
              (Defined by BsonExtensionMethods.) | |
| WriteBinarySubType | 
            Writes a binary sub type to the stream.
              (Defined by BsonStreamExtensions.) | |
| WriteBoolean | 
            Writes a boolean to the stream.
              (Defined by BsonStreamExtensions.) | |
| WriteBsonType | 
            Writes a BsonType to the stream.
              (Defined by BsonStreamExtensions.) | |
| WriteBytes | 
            Writes bytes to the stream.
              (Defined by BsonStreamExtensions.) | |
| WriteSlice | 
            Writes a slice to the stream.
              (Defined by BsonStreamExtensions.) |