BsonWriter Class |
Namespace: MongoDB.Bson.IO
The BsonWriter type exposes the following members.
Name | Description | |
---|---|---|
BsonWriter |
Initializes a new instance of the BsonWriter class.
|
Name | Description | |
---|---|---|
Disposed |
Gets whether the BsonWriter has been disposed.
| |
Name |
Gets the name of the element being written.
| |
SerializationDepth |
Gets the current serialization depth.
| |
Settings |
Gets the settings of the writer.
| |
State |
Gets the current state of the writer.
|
Name | Description | |
---|---|---|
Close |
Closes the writer.
| |
Dispose |
Disposes of any resources used by the writer.
| |
Dispose(Boolean) |
Disposes of any resources used by the writer.
| |
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.) | |
Flush |
Flushes any pending data to the output destination.
| |
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.) | |
PopElementNameValidator |
Pops the element name validator.
| |
PushElementNameValidator |
Pushes the element name validator.
| |
ThrowInvalidContextType |
Throws an InvalidOperationException when the method called is not valid for the current ContextType.
| |
ThrowInvalidState |
Throws an InvalidOperationException when the method called is not valid for the current state.
| |
ToString | Returns a string that represents the current object. (Inherited from Object.) | |
WriteBinaryData |
Writes BSON binary data to the writer.
| |
WriteBoolean |
Writes a BSON Boolean to the writer.
| |
WriteBytes |
Writes BSON binary data to the writer.
| |
WriteDateTime |
Writes a BSON DateTime to the writer.
| |
WriteDouble |
Writes a BSON Double to the writer.
| |
WriteEndArray |
Writes the end of a BSON array to the writer.
| |
WriteEndDocument |
Writes the end of a BSON document to the writer.
| |
WriteInt32 |
Writes a BSON Int32 to the writer.
| |
WriteInt64 |
Writes a BSON Int64 to the writer.
| |
WriteJavaScript |
Writes a BSON JavaScript to the writer.
| |
WriteJavaScriptWithScope |
Writes a BSON JavaScript to the writer (call WriteStartDocument to start writing the scope).
| |
WriteMaxKey |
Writes a BSON MaxKey to the writer.
| |
WriteMinKey |
Writes a BSON MinKey to the writer.
| |
WriteName |
Writes the name of an element to the writer.
| |
WriteNull |
Writes a BSON null to the writer.
| |
WriteObjectId |
Writes a BSON ObjectId to the writer.
| |
WriteRawBsonArray |
Writes a raw BSON array.
| |
WriteRawBsonDocument |
Writes a raw BSON document.
| |
WriteRegularExpression |
Writes a BSON regular expression to the writer.
| |
WriteStartArray |
Writes the start of a BSON array to the writer.
| |
WriteStartDocument |
Writes the start of a BSON document to the writer.
| |
WriteString |
Writes a BSON String to the writer.
| |
WriteSymbol |
Writes a BSON Symbol to the writer.
| |
WriteTimestamp |
Writes a BSON timestamp to the writer.
| |
WriteUndefined |
Writes a BSON undefined to the writer.
|
Name | Description | |
---|---|---|
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.) | |
WriteBinaryData |
Writes a BSON binary data element to the writer.
(Defined by IBsonWriterExtensions.) | |
WriteBoolean |
Writes a BSON Boolean element to the writer.
(Defined by IBsonWriterExtensions.) | |
WriteBytes |
Writes a BSON binary data element to the writer.
(Defined by IBsonWriterExtensions.) | |
WriteDateTime |
Writes a BSON DateTime element to the writer.
(Defined by IBsonWriterExtensions.) | |
WriteDouble |
Writes a BSON Double element to the writer.
(Defined by IBsonWriterExtensions.) | |
WriteInt32 |
Writes a BSON Int32 element to the writer.
(Defined by IBsonWriterExtensions.) | |
WriteInt64 |
Writes a BSON Int64 element to the writer.
(Defined by IBsonWriterExtensions.) | |
WriteJavaScript |
Writes a BSON JavaScript element to the writer.
(Defined by IBsonWriterExtensions.) | |
WriteJavaScriptWithScope |
Writes a BSON JavaScript element to the writer (call WriteStartDocument to start writing the scope).
(Defined by IBsonWriterExtensions.) | |
WriteMaxKey |
Writes a BSON MaxKey element to the writer.
(Defined by IBsonWriterExtensions.) | |
WriteMinKey |
Writes a BSON MinKey element to the writer.
(Defined by IBsonWriterExtensions.) | |
WriteNull |
Writes a BSON null element to the writer.
(Defined by IBsonWriterExtensions.) | |
WriteObjectId |
Writes a BSON ObjectId element to the writer.
(Defined by IBsonWriterExtensions.) | |
WriteRawBsonArray |
Writes a raw BSON array.
(Defined by IBsonWriterExtensions.) | |
WriteRawBsonDocument |
Writes a raw BSON document.
(Defined by IBsonWriterExtensions.) | |
WriteRegularExpression |
Writes a BSON regular expression element to the writer.
(Defined by IBsonWriterExtensions.) | |
WriteStartArray |
Writes the start of a BSON array element to the writer.
(Defined by IBsonWriterExtensions.) | |
WriteStartDocument |
Writes the start of a BSON document element to the writer.
(Defined by IBsonWriterExtensions.) | |
WriteString |
Writes a BSON String element to the writer.
(Defined by IBsonWriterExtensions.) | |
WriteSymbol |
Writes a BSON Symbol element to the writer.
(Defined by IBsonWriterExtensions.) | |
WriteTimestamp |
Writes a BSON timestamp element to the writer.
(Defined by IBsonWriterExtensions.) | |
WriteUndefined |
Writes a BSON undefined element to the writer.
(Defined by IBsonWriterExtensions.) |