BsonWriter Methods |
The BsonWriter type exposes the following members.
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 | (Inherited from Object.) | |
Finalize | (Inherited from Object.) | |
Flush |
Flushes any pending data to the output destination.
| |
GetHashCode | (Inherited from Object.) | |
GetType | (Inherited from Object.) | |
MemberwiseClone | (Inherited from Object.) | |
PopElementNameValidator |
Pops the element name validator.
| |
PopSettings |
Pops the settings.
| |
PushElementNameValidator |
Pushes the element name validator.
| |
PushSettings |
Pushes new settings for the writer.
| |
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 | (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.
| |
WriteDecimal128 |
Writes a BSON Decimal128 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.) | |
WriteDecimal128 |
Writes a BSON Decimal128 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.) |