C# Класс MongoDB.Driver.QueryDocument

Represents a BSON document that can be used where an IMongoQuery is expected.
Наследование: BsonDocument, IMongoQuery
Показать файл Открыть проект Примеры использования класса

Открытые методы

Метод Описание
QueryDocument ( ) : System

Initializes a new instance of the QueryDocument class.

QueryDocument ( BsonElement element ) : System

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

QueryDocument ( object>.Dictionary dictionary ) : System

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

QueryDocument ( IDictionary dictionary ) : System

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

QueryDocument ( IEnumerable elements ) : System

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

QueryDocument ( object>.IEnumerable dictionary ) : System

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

QueryDocument ( bool allowDuplicateNames ) : System

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

QueryDocument ( string name, BsonValue value ) : System

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

Приватные методы

Метод Описание
QueryDocument ( object>.Dictionary dictionary, IEnumerable keys ) : System
QueryDocument ( IDictionary dictionary, IEnumerable keys ) : System
QueryDocument ( object>.IDictionary dictionary, IEnumerable keys ) : System

Описание методов

QueryDocument() публичный метод

Initializes a new instance of the QueryDocument class.
public QueryDocument ( ) : System
Результат System

QueryDocument() публичный метод

Initializes a new instance of the QueryDocument class and adds one element.
public QueryDocument ( BsonElement element ) : System
element BsonElement An element to add to the document.
Результат System

QueryDocument() публичный метод

Initializes a new instance of the QueryDocument class and adds new elements from a dictionary of key/value pairs.
public QueryDocument ( object>.Dictionary dictionary ) : System
dictionary object>.Dictionary A dictionary to initialize the document from.
Результат System

QueryDocument() публичный метод

Initializes a new instance of the QueryDocument class and adds new elements from a dictionary of key/value pairs.
public QueryDocument ( IDictionary dictionary ) : System
dictionary IDictionary A dictionary to initialize the document from.
Результат System

QueryDocument() публичный метод

Initializes a new instance of the QueryDocument class and adds new elements from a list of elements.
public QueryDocument ( IEnumerable elements ) : System
elements IEnumerable A list of elements to add to the document.
Результат System

QueryDocument() публичный метод

Initializes a new instance of the QueryDocument class and adds new elements from a dictionary of key/value pairs.
public QueryDocument ( object>.IEnumerable dictionary ) : System
dictionary object>.IEnumerable A dictionary to initialize the document from.
Результат System

QueryDocument() публичный метод

Initializes a new instance of the QueryDocument class specifying whether duplicate element names are allowed (allowing duplicate element names is not recommended).
public QueryDocument ( bool allowDuplicateNames ) : System
allowDuplicateNames bool Whether duplicate element names are allowed.
Результат System

QueryDocument() публичный метод

Initializes a new instance of the QueryDocument class and creates and adds a new element.
public QueryDocument ( 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.
Результат System