Table of Contents

Class ScopeDocument

Namespace
MongoDB.Driver
Assembly
MongoDB.Driver.Legacy.dll

Represents a BSON document that can be used where an IMongoScope is expected.

[BsonSerializer(typeof(ScopeDocument.Serializer))]
public class ScopeDocument : BsonDocument, IComparable<BsonValue>, IConvertible, IEquatable<BsonValue>, IComparable<BsonDocument>, IConvertibleToBsonDocument, IEnumerable<BsonElement>, IEnumerable, IEquatable<BsonDocument>, IMongoScope
Inheritance
ScopeDocument
Implements
Inherited Members
Extension Methods

Constructors

ScopeDocument()

Initializes a new instance of the ScopeDocument class.

ScopeDocument(BsonElement)

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

ScopeDocument(params BsonElement[])

Initializes a new instance of the ScopeDocument class and adds one or more elements.

ScopeDocument(bool)

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

ScopeDocument(Dictionary<string, object>)

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

ScopeDocument(Dictionary<string, object>, IEnumerable<string>)

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

ScopeDocument(IDictionary<string, object>, IEnumerable<string>)

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

ScopeDocument(IEnumerable<BsonElement>)

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

ScopeDocument(IEnumerable<KeyValuePair<string, object>>)

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

ScopeDocument(IDictionary)

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

ScopeDocument(IDictionary, IEnumerable)

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

ScopeDocument(string, BsonValue)

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