C# Class MongoDB.Driver.ScopeDocument

Represents a BSON document that can be used where an IMongoScope is expected.
Inheritance: BsonDocument, IMongoScope
Mostrar archivo Open project: CloudMetal/mongo-csharp-driver Class Usage Examples

Public Methods

Method Description
ScopeDocument ( ) : System

Initializes a new instance of the ScopeDocument class.

ScopeDocument ( BsonElement element ) : System

Initializes a new instance of the ScopeDocument class and adds one element.

ScopeDocument ( object>.Dictionary dictionary ) : System

Initializes a new instance of the ScopeDocument class and adds new elements from a dictionary of key/value pairs.

ScopeDocument ( IDictionary dictionary ) : System

Initializes a new instance of the ScopeDocument class and adds new elements from a dictionary of key/value pairs.

ScopeDocument ( IEnumerable elements ) : System

Initializes a new instance of the ScopeDocument class and adds new elements from a list of elements.

ScopeDocument ( object>.IEnumerable dictionary ) : System

Initializes a new instance of the ScopeDocument class and adds new elements from a dictionary of key/value pairs.

ScopeDocument ( bool allowDuplicateNames ) : System

Initializes a new instance of the ScopeDocument class specifying whether duplicate element names are allowed (allowing duplicate element names is not recommended).

ScopeDocument ( string name, BsonValue value ) : System

Initializes a new instance of the ScopeDocument class and creates and adds a new element.

Private Methods

Method Description
ScopeDocument ( object>.Dictionary dictionary, IEnumerable keys ) : System
ScopeDocument ( IDictionary dictionary, IEnumerable keys ) : System
ScopeDocument ( object>.IDictionary dictionary, IEnumerable keys ) : System

Method Details

ScopeDocument() public method

Initializes a new instance of the ScopeDocument class.
public ScopeDocument ( ) : System
return System

ScopeDocument() public method

Initializes a new instance of the ScopeDocument class and adds one element.
public ScopeDocument ( BsonElement element ) : System
element BsonElement An element to add to the document.
return System

ScopeDocument() public method

Initializes a new instance of the ScopeDocument class and adds new elements from a dictionary of key/value pairs.
public ScopeDocument ( object>.Dictionary dictionary ) : System
dictionary object>.Dictionary A dictionary to initialize the document from.
return System

ScopeDocument() public method

Initializes a new instance of the ScopeDocument class and adds new elements from a dictionary of key/value pairs.
public ScopeDocument ( IDictionary dictionary ) : System
dictionary IDictionary A dictionary to initialize the document from.
return System

ScopeDocument() public method

Initializes a new instance of the ScopeDocument class and adds new elements from a list of elements.
public ScopeDocument ( IEnumerable elements ) : System
elements IEnumerable A list of elements to add to the document.
return System

ScopeDocument() public method

Initializes a new instance of the ScopeDocument class and adds new elements from a dictionary of key/value pairs.
public ScopeDocument ( object>.IEnumerable dictionary ) : System
dictionary object>.IEnumerable A dictionary to initialize the document from.
return System

ScopeDocument() public method

Initializes a new instance of the ScopeDocument class specifying whether duplicate element names are allowed (allowing duplicate element names is not recommended).
public ScopeDocument ( bool allowDuplicateNames ) : System
allowDuplicateNames bool Whether duplicate element names are allowed.
return System

ScopeDocument() public method

Initializes a new instance of the ScopeDocument class and creates and adds a new element.
public ScopeDocument ( string name, BsonValue value ) : System
name string The name of the element to add to the document.
value BsonValue The value of the element to add to the document.
return System