Méthode | Description | |
---|---|---|
Close ( ) : void |
Closes the writer.
|
|
Flush ( ) : void |
Flushes any pending data to the output destination.
|
|
JsonWriter ( |
Initializes a new instance of the JsonWriter class.
|
|
WriteBinaryData ( BsonBinaryData binaryData ) : void |
Writes BSON binary data to the writer.
|
|
WriteBoolean ( bool value ) : void |
Writes a BSON Boolean to the writer.
|
|
WriteBytes ( byte bytes ) : void |
Writes BSON binary data to the writer.
|
|
WriteDateTime ( long value ) : void |
Writes a BSON DateTime to the writer.
|
|
WriteDouble ( double value ) : void |
Writes a BSON Double 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.
|
|
WriteInt64 ( long value ) : void |
Writes a BSON Int64 to the writer.
|
|
WriteJavaScript ( string code ) : void |
Writes a BSON JavaScript to the writer.
|
|
WriteJavaScriptWithScope ( string code ) : void |
Writes a BSON JavaScript to the writer (call WriteStartDocument to start writing the scope).
|
|
WriteMaxKey ( ) : void |
Writes a BSON MaxKey to the writer.
|
|
WriteMinKey ( ) : void |
Writes a BSON MinKey to the writer.
|
|
WriteNull ( ) : void |
Writes a BSON null to the writer.
|
|
WriteObjectId ( ObjectId objectId ) : void |
Writes a BSON ObjectId to the writer.
|
|
WriteRegularExpression ( BsonRegularExpression regex ) : void |
Writes a BSON regular expression to the writer.
|
|
WriteStartArray ( ) : void |
Writes the start of a BSON array to the writer.
|
|
WriteStartDocument ( ) : void |
Writes the start of a BSON document to the writer.
|
|
WriteString ( string value ) : void |
Writes a BSON String to the writer.
|
|
WriteSymbol ( string value ) : void |
Writes a BSON Symbol to the writer.
|
|
WriteTimestamp ( long value ) : void |
Writes a BSON timestamp to the writer.
|
|
WriteUndefined ( ) : void |
Writes a BSON undefined to the writer.
|
Méthode | Description | |
---|---|---|
Dispose ( bool disposing ) : void |
Disposes of any resources used by the writer.
|
Méthode | Description | |
---|---|---|
EscapedString ( string value ) : string | ||
GetNextState ( ) : BsonWriterState | ||
GuidToString ( BsonBinarySubType subType, byte bytes, GuidRepresentation guidRepresentation ) : string | ||
NeedsEscaping ( char c ) : bool | ||
WriteNameHelper ( string name ) : void | ||
WriteQuotedString ( string value ) : void |
protected Dispose ( bool disposing ) : void | ||
disposing | bool | True if called from Dispose. |
Résultat | void |
public JsonWriter ( |
||
writer | A TextWriter. | |
settings | Optional JsonWriter settings. | |
Résultat | System |
public WriteBinaryData ( BsonBinaryData binaryData ) : void | ||
binaryData | BsonBinaryData | The binary data. |
Résultat | void |
public WriteBoolean ( bool value ) : void | ||
value | bool | The Boolean value. |
Résultat | void |
public WriteBytes ( byte bytes ) : void | ||
bytes | byte | The bytes. |
Résultat | void |
public WriteDateTime ( long value ) : void | ||
value | long | The number of milliseconds since the Unix epoch. |
Résultat | void |
public WriteDouble ( double value ) : void | ||
value | double | The Double value. |
Résultat | void |
public WriteInt32 ( int value ) : void | ||
value | int | The Int32 value. |
Résultat | void |
public WriteInt64 ( long value ) : void | ||
value | long | The Int64 value. |
Résultat | void |
public WriteJavaScript ( string code ) : void | ||
code | string | The JavaScript code. |
Résultat | void |
public WriteJavaScriptWithScope ( string code ) : void | ||
code | string | The JavaScript code. |
Résultat | void |
public WriteObjectId ( ObjectId objectId ) : void | ||
objectId | ObjectId | The ObjectId. |
Résultat | void |
public WriteRegularExpression ( BsonRegularExpression regex ) : void | ||
regex | BsonRegularExpression | A BsonRegularExpression. |
Résultat | void |
public WriteString ( string value ) : void | ||
value | string | The String value. |
Résultat | void |
public WriteSymbol ( string value ) : void | ||
value | string | The symbol. |
Résultat | void |
public WriteTimestamp ( long value ) : void | ||
value | long | The combined timestamp/increment value. |
Résultat | void |