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

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

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

Метод Описание
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.

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

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

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

FieldsDocument() публичный Метод

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

FieldsDocument() публичный Метод

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.
Результат System

FieldsDocument() публичный Метод

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.
Результат System

FieldsDocument() публичный Метод

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.
Результат System

FieldsDocument() публичный Метод

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.
Результат System

FieldsDocument() публичный Метод

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.
Результат System

FieldsDocument() публичный Метод

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.
Результат System

FieldsDocument() публичный Метод

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.
Результат System