C# Class MongoDB.Driver.FieldsDocument

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

Public Methods

Method Description
FieldsDocument ( ) : System

Initializes a new instance of the FieldsDocument class.

FieldsDocument ( BsonElement element ) : System

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

FieldsDocument ( object>.Dictionary dictionary ) : System

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

FieldsDocument ( IDictionary dictionary ) : System

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

FieldsDocument ( IEnumerable elements ) : System

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

FieldsDocument ( object>.IEnumerable dictionary ) : System

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

FieldsDocument ( bool allowDuplicateNames ) : System

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

FieldsDocument ( string name, BsonValue value ) : System

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

Private Methods

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

Method Details

FieldsDocument() public method

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

FieldsDocument() public method

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

FieldsDocument() public method

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

FieldsDocument() public method

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

FieldsDocument() public method

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

FieldsDocument() public method

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

FieldsDocument() public method

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

FieldsDocument() public method

Initializes a new instance of the FieldsDocument class and creates and adds a new element.
public FieldsDocument ( 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