Class FieldsDocument
Represents a BSON document that can be used where an IMongoFields is expected.
[BsonSerializer(typeof(FieldsDocument.Serializer))]
public class FieldsDocument : BsonDocument, IComparable<BsonValue>, IConvertible, IEquatable<BsonValue>, IComparable<BsonDocument>, IConvertibleToBsonDocument, IEnumerable<BsonElement>, IEnumerable, IEquatable<BsonDocument>, IMongoFields
- Inheritance
-
FieldsDocument
- Implements
- Inherited Members
- Extension Methods
Constructors
- FieldsDocument()
Initializes a new instance of the FieldsDocument class.
- FieldsDocument(BsonElement)
Initializes a new instance of the FieldsDocument class and adds one element.
- FieldsDocument(params BsonElement[])
Initializes a new instance of the FieldsDocument class and adds one or more elements.
- FieldsDocument(bool)
Initializes a new instance of the FieldsDocument class specifying whether duplicate element names are allowed (allowing duplicate element names is not recommended).
- FieldsDocument(Dictionary<string, object>)
Initializes a new instance of the FieldsDocument class and adds new elements from a dictionary of key/value pairs.
- FieldsDocument(Dictionary<string, object>, IEnumerable<string>)
Initializes a new instance of the FieldsDocument class and adds new elements from a dictionary of key/value pairs.
- FieldsDocument(IDictionary<string, object>, IEnumerable<string>)
Initializes a new instance of the FieldsDocument class and adds new elements from a dictionary of key/value pairs.
- FieldsDocument(IEnumerable<BsonElement>)
Initializes a new instance of the FieldsDocument class and adds new elements from a list of elements.
- FieldsDocument(IEnumerable<KeyValuePair<string, object>>)
Initializes a new instance of the FieldsDocument class and adds new elements from a dictionary of key/value pairs.
- FieldsDocument(IDictionary)
Initializes a new instance of the FieldsDocument class and adds new elements from a dictionary of key/value pairs.
- FieldsDocument(IDictionary, IEnumerable)
Initializes a new instance of the FieldsDocument class and adds new elements from a dictionary of key/value pairs.
- FieldsDocument(string, BsonValue)
Initializes a new instance of the FieldsDocument class and creates and adds a new element.