Method | Description | |
---|---|---|
Close ( ) : void |
Closes the writer.
|
|
Create ( |
Creates a BsonWriter to a BsonBuffer.
|
|
Create ( MongoDB.Bson.IO.BsonBuffer buffer ) : |
Creates a BsonWriter to a BsonBuffer.
|
|
Create ( MongoDB.Bson.IO.BsonBuffer buffer, |
Creates a BsonWriter to a BsonBuffer.
|
|
Create ( BsonDocument document ) : |
Creates a BsonWriter to a BsonDocument.
|
|
Create ( BsonDocument document, |
Creates a BsonWriter to a BsonDocument.
|
|
Create ( Stream stream ) : |
Creates a BsonWriter to a BSON Stream.
|
|
Create ( Stream stream, |
Creates a BsonWriter to a BSON Stream.
|
|
Create ( |
Creates a BsonWriter to a JSON TextWriter.
|
|
Create ( |
Creates a BsonWriter to a JSON TextWriter.
|
|
Dispose ( ) : void |
Disposes of any resources used by the writer.
|
|
Flush ( ) : void |
Flushes any pending data to the output destination.
|
|
WriteBinaryData ( BsonBinaryData binaryData ) : void |
Writes BSON binary data to the writer.
|
|
WriteBinaryData ( string name, BsonBinaryData binaryData ) : void |
Writes a BSON binary data element to the writer.
|
|
WriteBoolean ( bool value ) : void |
Writes a BSON Boolean to the writer.
|
|
WriteBoolean ( string name, bool value ) : void |
Writes a BSON Boolean element to the writer.
|
|
WriteBytes ( byte bytes ) : void |
Writes BSON binary data to the writer.
|
|
WriteBytes ( string name, byte bytes ) : void |
Writes a BSON binary data element to the writer.
|
|
WriteDateTime ( long value ) : void |
Writes a BSON DateTime to the writer.
|
|
WriteDateTime ( string name, long value ) : void |
Writes a BSON DateTime element to the writer.
|
|
WriteDouble ( double value ) : void |
Writes a BSON Double to the writer.
|
|
WriteDouble ( string name, double value ) : void |
Writes a BSON Double element to the writer.
|
|
WriteEndArray ( ) : void |
Writes the end of a BSON array to the writer.
|
|
WriteEndDocument ( ) : void |
Writes the end of a BSON document to the writer.
|
|
WriteInt32 ( int value ) : void |
Writes a BSON Int32 to the writer.
|
|
WriteInt32 ( string name, int value ) : void |
Writes a BSON Int32 element to the writer.
|
|
WriteInt64 ( long value ) : void |
Writes a BSON Int64 to the writer.
|
|
WriteInt64 ( string name, long value ) : void |
Writes a BSON Int64 element to the writer.
|
|
WriteJavaScript ( string code ) : void |
Writes a BSON JavaScript to the writer.
|
|
WriteJavaScript ( string name, string code ) : void |
Writes a BSON JavaScript element to the writer.
|
|
WriteJavaScriptWithScope ( string code ) : void |
Writes a BSON JavaScript to the writer (call WriteStartDocument to start writing the scope).
|
|
WriteJavaScriptWithScope ( string name, string code ) : void |
Writes a BSON JavaScript element to the writer (call WriteStartDocument to start writing the scope).
|
|
WriteMaxKey ( ) : void |
Writes a BSON MaxKey to the writer.
|
|
WriteMaxKey ( string name ) : void |
Writes a BSON MaxKey element to the writer.
|
|
WriteMinKey ( ) : void |
Writes a BSON MinKey to the writer.
|
|
WriteMinKey ( string name ) : void |
Writes a BSON MinKey element to the writer.
|
|
WriteName ( string name ) : void |
Writes the name of an element to the writer.
|
|
WriteNull ( ) : void |
Writes a BSON null to the writer.
|
|
WriteNull ( string name ) : void |
Writes a BSON null element to the writer.
|
|
WriteObjectId ( ObjectId objectId ) : void |
Writes a BSON ObjectId to the writer.
|
|
WriteObjectId ( string name, ObjectId objectId ) : void |
Writes a BSON ObjectId element to the writer.
|
|
WriteRawBsonArray ( IByteBuffer slice ) : void |
Writes a raw BSON array.
|
|
WriteRawBsonArray ( string name, IByteBuffer slice ) : void |
Writes a raw BSON array.
|
|
WriteRawBsonDocument ( IByteBuffer slice ) : void |
Writes a raw BSON document.
|
|
WriteRawBsonDocument ( string name, IByteBuffer slice ) : void |
Writes a raw BSON document.
|
|
WriteRegularExpression ( BsonRegularExpression regex ) : void |
Writes a BSON regular expression to the writer.
|
|
WriteRegularExpression ( string name, BsonRegularExpression regex ) : void |
Writes a BSON regular expression element to the writer.
|
|
WriteStartArray ( ) : void |
Writes the start of a BSON array to the writer.
|
|
WriteStartArray ( string name ) : void |
Writes the start of a BSON array element to the writer.
|
|
WriteStartDocument ( ) : void |
Writes the start of a BSON document to the writer.
|
|
WriteStartDocument ( string name ) : void |
Writes the start of a BSON document element to the writer.
|
|
WriteString ( string value ) : void |
Writes a BSON String to the writer.
|
|
WriteString ( string name, string value ) : void |
Writes a BSON String element to the writer.
|
|
WriteSymbol ( string value ) : void |
Writes a BSON Symbol to the writer.
|
|
WriteSymbol ( string name, string value ) : void |
Writes a BSON Symbol element to the writer.
|
|
WriteTimestamp ( long value ) : void |
Writes a BSON timestamp to the writer.
|
|
WriteTimestamp ( string name, long value ) : void |
Writes a BSON timestamp element to the writer.
|
|
WriteUndefined ( ) : void |
Writes a BSON undefined to the writer.
|
|
WriteUndefined ( string name ) : void |
Writes a BSON undefined element to the writer.
|
Method | Description | |
---|---|---|
BsonWriter ( |
Initializes a new instance of the BsonWriter class.
|
|
CheckElementName ( string name ) : void |
Checks that the element name is valid.
|
|
Dispose ( bool disposing ) : void |
Disposes of any resources used by the writer.
|
|
ThrowInvalidContextType ( string methodName, ContextType actualContextType ) : void |
Throws an InvalidOperationException when the method called is not valid for the current ContextType.
|
|
ThrowInvalidState ( string methodName ) : void |
Throws an InvalidOperationException when the method called is not valid for the current state.
|
Method | Description | |
---|---|---|
WriteBinaryData ( byte bytes, BsonBinarySubType subType ) : void | ||
WriteBinaryData ( byte bytes, BsonBinarySubType subType, GuidRepresentation guidRepresentation ) : void | ||
WriteBinaryData ( string name, byte bytes, BsonBinarySubType subType ) : void | ||
WriteBinaryData ( string name, byte bytes, BsonBinarySubType subType, GuidRepresentation guidRepresentation ) : void | ||
WriteObjectId ( int timestamp, int machine, short pid, int increment ) : void | ||
WriteObjectId ( string name, int timestamp, int machine, short pid, int increment ) : void | ||
WriteRegularExpression ( string pattern, string options ) : void | ||
WriteRegularExpression ( string name, string pattern, string options ) : void |
protected BsonWriter ( |
||
settings | The writer settings. | |
return | System |
protected CheckElementName ( string name ) : void | ||
name | string | The element name to be checked. |
return | void |
public static Create ( |
||
settings | Optional BsonBinaryWriterSettings. | |
return |
public static Create ( MongoDB.Bson.IO.BsonBuffer buffer ) : |
||
buffer | MongoDB.Bson.IO.BsonBuffer | A BsonBuffer. |
return |
public static Create ( MongoDB.Bson.IO.BsonBuffer buffer, |
||
buffer | MongoDB.Bson.IO.BsonBuffer | A BsonBuffer. |
settings | Optional BsonBinaryWriterSettings. | |
return |
public static Create ( BsonDocument document ) : |
||
document | BsonDocument | A BsonDocument. |
return |
public static Create ( BsonDocument document, |
||
document | BsonDocument | A BsonDocument. |
settings | The settings. | |
return |
public static Create ( Stream stream ) : |
||
stream | Stream | A Stream. |
return |
public static Create ( Stream stream, |
||
stream | Stream | A Stream. |
settings | Optional BsonBinaryWriterSettings. | |
return |
public static Create ( |
||
writer | A TextWriter. | |
return |
public static Create ( |
||
writer | A TextWriter. | |
settings | Optional JsonWriterSettings. | |
return |
protected Dispose ( bool disposing ) : void | ||
disposing | bool | True if called from Dispose. |
return | void |
protected ThrowInvalidContextType ( string methodName, ContextType actualContextType ) : void | ||
methodName | string | The name of the method. |
actualContextType | ContextType | The actual ContextType. |
return | void |
protected ThrowInvalidState ( string methodName ) : void | ||
methodName | string | The name of the method. |
return | void |
public abstract WriteBinaryData ( BsonBinaryData binaryData ) : void | ||
binaryData | BsonBinaryData | The binary data. |
return | void |
public WriteBinaryData ( string name, BsonBinaryData binaryData ) : void | ||
name | string | The name of the element. |
binaryData | BsonBinaryData | The binary data. |
return | void |
public abstract WriteBoolean ( bool value ) : void | ||
value | bool | The Boolean value. |
return | void |
public WriteBoolean ( string name, bool value ) : void | ||
name | string | The name of the element. |
value | bool | The Boolean value. |
return | void |
public abstract WriteBytes ( byte bytes ) : void | ||
bytes | byte | The bytes. |
return | void |
public WriteBytes ( string name, byte bytes ) : void | ||
name | string | The name of the element. |
bytes | byte | The bytes. |
return | void |
public abstract WriteDateTime ( long value ) : void | ||
value | long | The number of milliseconds since the Unix epoch. |
return | void |
public WriteDateTime ( string name, long value ) : void | ||
name | string | The name of the element. |
value | long | The number of milliseconds since the Unix epoch. |
return | void |
public abstract WriteDouble ( double value ) : void | ||
value | double | The Double value. |
return | void |
public WriteDouble ( string name, double value ) : void | ||
name | string | The name of the element. |
value | double | The Double value. |
return | void |
public abstract WriteInt32 ( int value ) : void | ||
value | int | The Int32 value. |
return | void |
public WriteInt32 ( string name, int value ) : void | ||
name | string | The name of the element. |
value | int | The Int32 value. |
return | void |
public abstract WriteInt64 ( long value ) : void | ||
value | long | The Int64 value. |
return | void |
public WriteInt64 ( string name, long value ) : void | ||
name | string | The name of the element. |
value | long | The Int64 value. |
return | void |
public abstract WriteJavaScript ( string code ) : void | ||
code | string | The JavaScript code. |
return | void |
public WriteJavaScript ( string name, string code ) : void | ||
name | string | The name of the element. |
code | string | The JavaScript code. |
return | void |
public abstract WriteJavaScriptWithScope ( string code ) : void | ||
code | string | The JavaScript code. |
return | void |
public WriteJavaScriptWithScope ( string name, string code ) : void | ||
name | string | The name of the element. |
code | string | The JavaScript code. |
return | void |
public WriteMaxKey ( string name ) : void | ||
name | string | The name of the element. |
return | void |
public WriteMinKey ( string name ) : void | ||
name | string | The name of the element. |
return | void |
public WriteName ( string name ) : void | ||
name | string | The name of the element. |
return | void |
public WriteNull ( string name ) : void | ||
name | string | The name of the element. |
return | void |
public abstract WriteObjectId ( ObjectId objectId ) : void | ||
objectId | ObjectId | The ObjectId. |
return | void |
public WriteObjectId ( string name, ObjectId objectId ) : void | ||
name | string | The name of the element. |
objectId | ObjectId | The ObjectId. |
return | void |
public WriteRawBsonArray ( IByteBuffer slice ) : void | ||
slice | IByteBuffer | The byte buffer containing the raw BSON array. |
return | void |
public WriteRawBsonArray ( string name, IByteBuffer slice ) : void | ||
name | string | The name. |
slice | IByteBuffer | The byte buffer containing the raw BSON array. |
return | void |
public WriteRawBsonDocument ( IByteBuffer slice ) : void | ||
slice | IByteBuffer | The byte buffer containing the raw BSON document. |
return | void |
public WriteRawBsonDocument ( string name, IByteBuffer slice ) : void | ||
name | string | The name. |
slice | IByteBuffer | The byte buffer containing the raw BSON document. |
return | void |
public abstract WriteRegularExpression ( BsonRegularExpression regex ) : void | ||
regex | BsonRegularExpression | A BsonRegularExpression. |
return | void |
public WriteRegularExpression ( string name, BsonRegularExpression regex ) : void | ||
name | string | The name of the element. |
regex | BsonRegularExpression | A BsonRegularExpression. |
return | void |
public WriteStartArray ( string name ) : void | ||
name | string | The name of the element. |
return | void |
public WriteStartDocument ( string name ) : void | ||
name | string | The name of the element. |
return | void |
public abstract WriteString ( string value ) : void | ||
value | string | The String value. |
return | void |
public WriteString ( string name, string value ) : void | ||
name | string | The name of the element. |
value | string | The String value. |
return | void |
public abstract WriteSymbol ( string value ) : void | ||
value | string | The symbol. |
return | void |
public WriteSymbol ( string name, string value ) : void | ||
name | string | The name of the element. |
value | string | The symbol. |
return | void |
public abstract WriteTimestamp ( long value ) : void | ||
value | long | The combined timestamp/increment value. |
return | void |
public WriteTimestamp ( string name, long value ) : void | ||
name | string | The name of the element. |
value | long | The combined timestamp/increment value. |
return | void |
public WriteUndefined ( string name ) : void | ||
name | string | The name of the element. |
return | void |