C# 클래스 MongoDB.Bson.RawBsonDocument

상속: BsonDocument, IDisposable
파일 보기 프로젝트 열기: egametang/Egametang 1 사용 예제들

Private Properties

프로퍼티 타입 설명
Add BsonDocument
Add BsonDocument
Add BsonDocument
Add BsonDocument
Add BsonDocument
Add BsonDocument
Add BsonDocument
Add BsonDocument
CloneSlice IByteBuffer
DeserializeBsonValue BsonValue
DeserializeRawBsonArray RawBsonArray
DeserializeRawBsonDocument RawBsonDocument
this BsonValue

공개 메소드들

메소드 설명
Add ( BsonElement element ) : BsonDocument

Adds an element to the document.

Add ( string name, BsonValue value ) : BsonDocument

Creates and adds an element to the document.

Add ( string name, BsonValue value, bool condition ) : BsonDocument

Creates and adds an element to the document, but only if the condition is true.

AddRange ( object>.Dictionary dictionary ) : BsonDocument

Adds elements to the document from a dictionary of key/value pairs.

AddRange ( IDictionary dictionary ) : BsonDocument

Adds elements to the document from a dictionary of key/value pairs.

AddRange ( IEnumerable elements ) : BsonDocument

Adds a list of elements to the document.

AddRange ( object>.IEnumerable dictionary ) : BsonDocument

Adds elements to the document from a dictionary of key/value pairs.

Clear ( ) : void

Clears the document (removes all elements).

Clone ( ) : BsonValue

Creates a shallow clone of the document (see also DeepClone).

Contains ( string name ) : bool

Tests whether the document contains an element with the specified name.

ContainsValue ( BsonValue value ) : bool

Tests whether the document contains an element with the specified value.

DeepClone ( ) : BsonValue

Creates a deep clone of the document (see also Clone).

Dispose ( ) : void

Performs application-defined tasks associated with freeing, releasing, or resetting unmanaged resources.

GetElement ( int index ) : BsonElement

Gets an element of this document.

GetElement ( string name ) : BsonElement

Gets an element of this document.

GetEnumerator ( ) : IEnumerator

Gets an enumerator that can be used to enumerate the elements of this document.

GetValue ( int index ) : BsonValue

Gets the value of an element.

GetValue ( string name ) : BsonValue

Gets the value of an element.

GetValue ( string name, BsonValue defaultValue ) : BsonValue

Gets the value of an element or a default value if the element is not found.

InsertAt ( int index, BsonElement element ) : void

Inserts a new element at a specified position.

Merge ( BsonDocument document ) : BsonDocument

Merges another document into this one. Existing elements are not overwritten.

Merge ( BsonDocument document, bool overwriteExistingElements ) : BsonDocument

Merges another document into this one, specifying whether existing elements are overwritten.

RawBsonDocument ( IByteBuffer slice ) : System

Initializes a new instance of the RawBsonDocument class.

RawBsonDocument ( byte bytes ) : System

Initializes a new instance of the RawBsonDocument class.

Remove ( string name ) : void

Removes an element from this document (if duplicate element names are allowed then all elements with this name will be removed).

RemoveAt ( int index ) : void

Removes an element from this document.

RemoveElement ( BsonElement element ) : void

Removes an element from this document.

Set ( int index, BsonValue value ) : BsonDocument

Sets the value of an element.

Set ( string name, BsonValue value ) : BsonDocument

Sets the value of an element (an element will be added if no element with this name is found).

SetElement ( BsonElement element ) : BsonDocument

Sets an element of the document (replaces any existing element with the same name or adds a new element if an element with the same name is not found).

SetElement ( int index, BsonElement element ) : BsonDocument

Sets an element of the document (replacing the existing element at that position).

TryGetElement ( string name, BsonElement &element ) : bool

Tries to get an element of this document.

TryGetValue ( string name, BsonValue &value ) : bool

Tries to get the value of an element of this document.

this ( int index ) : BsonValue

Gets or sets a value by position.

this ( string name ) : BsonValue

Gets or sets a value by name.

보호된 메소드들

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

Releases unmanaged and - optionally - managed resources.

ThrowIfDisposed ( ) : void

Throws if disposed.

비공개 메소드들

메소드 설명
Add ( ) : BsonDocument
Add ( object>.Dictionary dictionary ) : BsonDocument
Add ( object>.Dictionary dictionary, IEnumerable keys ) : BsonDocument
Add ( IDictionary dictionary ) : BsonDocument
Add ( IDictionary dictionary, IEnumerable keys ) : BsonDocument
Add ( object>.IDictionary dictionary ) : BsonDocument
Add ( object>.IDictionary dictionary, IEnumerable keys ) : BsonDocument
Add ( IEnumerable elements ) : BsonDocument
CloneSlice ( ) : IByteBuffer
DeserializeBsonValue ( MongoDB.Bson.IO.BsonBinaryReader bsonReader ) : BsonValue
DeserializeRawBsonArray ( MongoDB.Bson.IO.BsonBinaryReader bsonReader ) : RawBsonArray
DeserializeRawBsonDocument ( MongoDB.Bson.IO.BsonBinaryReader bsonReader ) : RawBsonDocument
this ( string name, BsonValue defaultValue ) : BsonValue

메소드 상세

Add() 공개 메소드

Adds an element to the document.
public Add ( BsonElement element ) : BsonDocument
element BsonElement The element to add.
리턴 BsonDocument

Add() 공개 메소드

Creates and adds an element to the document.
public Add ( string name, BsonValue value ) : BsonDocument
name string The name of the element.
value BsonValue The value of the element.
리턴 BsonDocument

Add() 공개 메소드

Creates and adds an element to the document, but only if the condition is true.
public Add ( string name, BsonValue value, bool condition ) : BsonDocument
name string The name of the element.
value BsonValue The value of the element.
condition bool Whether to add the element to the document.
리턴 BsonDocument

AddRange() 공개 메소드

Adds elements to the document from a dictionary of key/value pairs.
public AddRange ( object>.Dictionary dictionary ) : BsonDocument
dictionary object>.Dictionary The dictionary.
리턴 BsonDocument

AddRange() 공개 메소드

Adds elements to the document from a dictionary of key/value pairs.
public AddRange ( IDictionary dictionary ) : BsonDocument
dictionary IDictionary The dictionary.
리턴 BsonDocument

AddRange() 공개 메소드

Adds a list of elements to the document.
public AddRange ( IEnumerable elements ) : BsonDocument
elements IEnumerable The list of elements.
리턴 BsonDocument

AddRange() 공개 메소드

Adds elements to the document from a dictionary of key/value pairs.
public AddRange ( object>.IEnumerable dictionary ) : BsonDocument
dictionary object>.IEnumerable The dictionary.
리턴 BsonDocument

Clear() 공개 메소드

Clears the document (removes all elements).
public Clear ( ) : void
리턴 void

Clone() 공개 메소드

Creates a shallow clone of the document (see also DeepClone).
public Clone ( ) : BsonValue
리턴 BsonValue

Contains() 공개 메소드

Tests whether the document contains an element with the specified name.
public Contains ( string name ) : bool
name string The name of the element to look for.
리턴 bool

ContainsValue() 공개 메소드

Tests whether the document contains an element with the specified value.
public ContainsValue ( BsonValue value ) : bool
value BsonValue The value of the element to look for.
리턴 bool

DeepClone() 공개 메소드

Creates a deep clone of the document (see also Clone).
public DeepClone ( ) : BsonValue
리턴 BsonValue

Dispose() 공개 메소드

Performs application-defined tasks associated with freeing, releasing, or resetting unmanaged resources.
public Dispose ( ) : void
리턴 void

Dispose() 보호된 메소드

Releases unmanaged and - optionally - managed resources.
protected Dispose ( bool disposing ) : void
disposing bool true to release both managed and unmanaged resources; false to release only unmanaged resources.
리턴 void

GetElement() 공개 메소드

Gets an element of this document.
public GetElement ( int index ) : BsonElement
index int The zero based index of the element.
리턴 BsonElement

GetElement() 공개 메소드

Gets an element of this document.
public GetElement ( string name ) : BsonElement
name string The name of the element.
리턴 BsonElement

GetEnumerator() 공개 메소드

Gets an enumerator that can be used to enumerate the elements of this document.
public GetEnumerator ( ) : IEnumerator
리턴 IEnumerator

GetValue() 공개 메소드

Gets the value of an element.
public GetValue ( int index ) : BsonValue
index int The zero based index of the element.
리턴 BsonValue

GetValue() 공개 메소드

Gets the value of an element.
public GetValue ( string name ) : BsonValue
name string The name of the element.
리턴 BsonValue

GetValue() 공개 메소드

Gets the value of an element or a default value if the element is not found.
public GetValue ( string name, BsonValue defaultValue ) : BsonValue
name string The name of the element.
defaultValue BsonValue The default value returned if the element is not found.
리턴 BsonValue

InsertAt() 공개 메소드

Inserts a new element at a specified position.
public InsertAt ( int index, BsonElement element ) : void
index int The position of the new element.
element BsonElement The element.
리턴 void

Merge() 공개 메소드

Merges another document into this one. Existing elements are not overwritten.
public Merge ( BsonDocument document ) : BsonDocument
document BsonDocument The other document.
리턴 BsonDocument

Merge() 공개 메소드

Merges another document into this one, specifying whether existing elements are overwritten.
public Merge ( BsonDocument document, bool overwriteExistingElements ) : BsonDocument
document BsonDocument The other document.
overwriteExistingElements bool Whether to overwrite existing elements.
리턴 BsonDocument

RawBsonDocument() 공개 메소드

Initializes a new instance of the RawBsonDocument class.
slice RawBsonDocument cannot be used with an IByteBuffer that needs disposing.
public RawBsonDocument ( IByteBuffer slice ) : System
slice IByteBuffer The slice.
리턴 System

RawBsonDocument() 공개 메소드

Initializes a new instance of the RawBsonDocument class.
public RawBsonDocument ( byte bytes ) : System
bytes byte The bytes.
리턴 System

Remove() 공개 메소드

Removes an element from this document (if duplicate element names are allowed then all elements with this name will be removed).
public Remove ( string name ) : void
name string The name of the element to remove.
리턴 void

RemoveAt() 공개 메소드

Removes an element from this document.
public RemoveAt ( int index ) : void
index int The zero based index of the element to remove.
리턴 void

RemoveElement() 공개 메소드

Removes an element from this document.
public RemoveElement ( BsonElement element ) : void
element BsonElement The element to remove.
리턴 void

Set() 공개 메소드

Sets the value of an element.
public Set ( int index, BsonValue value ) : BsonDocument
index int The zero based index of the element whose value is to be set.
value BsonValue The new value.
리턴 BsonDocument

Set() 공개 메소드

Sets the value of an element (an element will be added if no element with this name is found).
public Set ( string name, BsonValue value ) : BsonDocument
name string The name of the element whose value is to be set.
value BsonValue The new value.
리턴 BsonDocument

SetElement() 공개 메소드

Sets an element of the document (replaces any existing element with the same name or adds a new element if an element with the same name is not found).
public SetElement ( BsonElement element ) : BsonDocument
element BsonElement The new element.
리턴 BsonDocument

SetElement() 공개 메소드

Sets an element of the document (replacing the existing element at that position).
public SetElement ( int index, BsonElement element ) : BsonDocument
index int The zero based index of the element to replace.
element BsonElement The new element.
리턴 BsonDocument

ThrowIfDisposed() 보호된 메소드

Throws if disposed.
RawBsonDocument
protected ThrowIfDisposed ( ) : void
리턴 void

TryGetElement() 공개 메소드

Tries to get an element of this document.
public TryGetElement ( string name, BsonElement &element ) : bool
name string The name of the element.
element BsonElement The element.
리턴 bool

TryGetValue() 공개 메소드

Tries to get the value of an element of this document.
public TryGetValue ( string name, BsonValue &value ) : bool
name string The name of the element.
value BsonValue The value of the element.
리턴 bool

this() 공개 메소드

Gets or sets a value by position.
public this ( int index ) : BsonValue
index int The position.
리턴 BsonValue

this() 공개 메소드

Gets or sets a value by name.
public this ( string name ) : BsonValue
name string The name.
리턴 BsonValue