C# 클래스 MongoDB.Bson.IO.JsonWriter

Represents a BSON writer to a TextWriter (in JSON format).
상속: BsonWriter
파일 보기 프로젝트 열기: egametang/Egametang 1 사용 예제들

공개 메소드들

메소드 설명
Close ( ) : void

Closes the writer.

Flush ( ) : void

Flushes any pending data to the output destination.

JsonWriter ( TextWriter writer, JsonWriterSettings settings ) : System

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.

보호된 메소드들

메소드 설명
Dispose ( bool disposing ) : void

Disposes of any resources used by the writer.

비공개 메소드들

메소드 설명
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

메소드 상세

Close() 공개 메소드

Closes the writer.
public Close ( ) : void
리턴 void

Dispose() 보호된 메소드

Disposes of any resources used by the writer.
protected Dispose ( bool disposing ) : void
disposing bool True if called from Dispose.
리턴 void

Flush() 공개 메소드

Flushes any pending data to the output destination.
public Flush ( ) : void
리턴 void

JsonWriter() 공개 메소드

Initializes a new instance of the JsonWriter class.
public JsonWriter ( TextWriter writer, JsonWriterSettings settings ) : System
writer System.IO.TextWriter A TextWriter.
settings JsonWriterSettings Optional JsonWriter settings.
리턴 System

WriteBinaryData() 공개 메소드

Writes BSON binary data to the writer.
public WriteBinaryData ( BsonBinaryData binaryData ) : void
binaryData BsonBinaryData The binary data.
리턴 void

WriteBoolean() 공개 메소드

Writes a BSON Boolean to the writer.
public WriteBoolean ( bool value ) : void
value bool The Boolean value.
리턴 void

WriteBytes() 공개 메소드

Writes BSON binary data to the writer.
public WriteBytes ( byte bytes ) : void
bytes byte The bytes.
리턴 void

WriteDateTime() 공개 메소드

Writes a BSON DateTime to the writer.
public WriteDateTime ( long value ) : void
value long The number of milliseconds since the Unix epoch.
리턴 void

WriteDouble() 공개 메소드

Writes a BSON Double to the writer.
public WriteDouble ( double value ) : void
value double The Double value.
리턴 void

WriteEndArray() 공개 메소드

Writes the end of a BSON array to the writer.
public WriteEndArray ( ) : void
리턴 void

WriteEndDocument() 공개 메소드

Writes the end of a BSON document to the writer.
public WriteEndDocument ( ) : void
리턴 void

WriteInt32() 공개 메소드

Writes a BSON Int32 to the writer.
public WriteInt32 ( int value ) : void
value int The Int32 value.
리턴 void

WriteInt64() 공개 메소드

Writes a BSON Int64 to the writer.
public WriteInt64 ( long value ) : void
value long The Int64 value.
리턴 void

WriteJavaScript() 공개 메소드

Writes a BSON JavaScript to the writer.
public WriteJavaScript ( string code ) : void
code string The JavaScript code.
리턴 void

WriteJavaScriptWithScope() 공개 메소드

Writes a BSON JavaScript to the writer (call WriteStartDocument to start writing the scope).
public WriteJavaScriptWithScope ( string code ) : void
code string The JavaScript code.
리턴 void

WriteMaxKey() 공개 메소드

Writes a BSON MaxKey to the writer.
public WriteMaxKey ( ) : void
리턴 void

WriteMinKey() 공개 메소드

Writes a BSON MinKey to the writer.
public WriteMinKey ( ) : void
리턴 void

WriteNull() 공개 메소드

Writes a BSON null to the writer.
public WriteNull ( ) : void
리턴 void

WriteObjectId() 공개 메소드

Writes a BSON ObjectId to the writer.
public WriteObjectId ( ObjectId objectId ) : void
objectId ObjectId The ObjectId.
리턴 void

WriteRegularExpression() 공개 메소드

Writes a BSON regular expression to the writer.
public WriteRegularExpression ( BsonRegularExpression regex ) : void
regex BsonRegularExpression A BsonRegularExpression.
리턴 void

WriteStartArray() 공개 메소드

Writes the start of a BSON array to the writer.
public WriteStartArray ( ) : void
리턴 void

WriteStartDocument() 공개 메소드

Writes the start of a BSON document to the writer.
public WriteStartDocument ( ) : void
리턴 void

WriteString() 공개 메소드

Writes a BSON String to the writer.
public WriteString ( string value ) : void
value string The String value.
리턴 void

WriteSymbol() 공개 메소드

Writes a BSON Symbol to the writer.
public WriteSymbol ( string value ) : void
value string The symbol.
리턴 void

WriteTimestamp() 공개 메소드

Writes a BSON timestamp to the writer.
public WriteTimestamp ( long value ) : void
value long The combined timestamp/increment value.
리턴 void

WriteUndefined() 공개 메소드

Writes a BSON undefined to the writer.
public WriteUndefined ( ) : void
리턴 void