Class GeoHaystackSearchOptionsDocument
Represents a BSON document that can be used where an IMongoGeoHaystackSearchOptions is expected.
[BsonSerializer(typeof(GeoHaystackSearchOptionsDocument.Serializer))]
[Obsolete("Use GeoHaystackSearchArgs instead.")]
public class GeoHaystackSearchOptionsDocument : BsonDocument, IComparable<BsonValue>, IConvertible, IEquatable<BsonValue>, IComparable<BsonDocument>, IConvertibleToBsonDocument, IEnumerable<BsonElement>, IEnumerable, IEquatable<BsonDocument>, IMongoGeoHaystackSearchOptions
- Inheritance
-
GeoHaystackSearchOptionsDocument
- Implements
- Inherited Members
- Extension Methods
Constructors
GeoHaystackSearchOptionsDocument()
Initializes a new instance of the GeoHaystackSearchOptionsDocument class.
public GeoHaystackSearchOptionsDocument()
GeoHaystackSearchOptionsDocument(BsonElement)
Initializes a new instance of the GeoHaystackSearchOptionsDocument class and adds one element.
public GeoHaystackSearchOptionsDocument(BsonElement element)
Parameters
elementBsonElementAn element to add to the document.
GeoHaystackSearchOptionsDocument(params BsonElement[])
Initializes a new instance of the GeoHaystackSearchOptionsDocument class and adds one or more elements.
[Obsolete("Use GeoHaystackSearchOptionsDocument<IEnumerable<BsonElement> elements) instead.")]
public GeoHaystackSearchOptionsDocument(params BsonElement[] elements)
Parameters
elementsBsonElement[]One or more elements to add to the document.
GeoHaystackSearchOptionsDocument(bool)
Initializes a new instance of the GeoHaystackSearchOptionsDocument class specifying whether duplicate element names are allowed (allowing duplicate element names is not recommended).
public GeoHaystackSearchOptionsDocument(bool allowDuplicateNames)
Parameters
allowDuplicateNamesboolWhether duplicate element names are allowed.
GeoHaystackSearchOptionsDocument(Dictionary<string, object>)
Initializes a new instance of the GeoHaystackSearchOptionsDocument class and adds new elements from a dictionary of key/value pairs.
public GeoHaystackSearchOptionsDocument(Dictionary<string, object> dictionary)
Parameters
dictionaryDictionary<string, object>A dictionary to initialize the document from.
GeoHaystackSearchOptionsDocument(Dictionary<string, object>, IEnumerable<string>)
Initializes a new instance of the GeoHaystackSearchOptionsDocument class and adds new elements from a dictionary of key/value pairs.
[Obsolete("Use GeoHaystackSearchOptionsDocument<IEnumerable<BsonElement> elements) instead.")]
public GeoHaystackSearchOptionsDocument(Dictionary<string, object> dictionary, IEnumerable<string> keys)
Parameters
dictionaryDictionary<string, object>A dictionary to initialize the document from.
keysIEnumerable<string>A list of keys to select values from the dictionary.
GeoHaystackSearchOptionsDocument(IDictionary<string, object>, IEnumerable<string>)
Initializes a new instance of the GeoHaystackSearchOptionsDocument class and adds new elements from a dictionary of key/value pairs.
[Obsolete("Use GeoHaystackSearchOptionsDocument<IEnumerable<BsonElement> elements) instead.")]
public GeoHaystackSearchOptionsDocument(IDictionary<string, object> dictionary, IEnumerable<string> keys)
Parameters
dictionaryIDictionary<string, object>A dictionary to initialize the document from.
keysIEnumerable<string>A list of keys to select values from the dictionary.
GeoHaystackSearchOptionsDocument(IEnumerable<BsonElement>)
Initializes a new instance of the GeoHaystackSearchOptionsDocument class and adds new elements from a list of elements.
public GeoHaystackSearchOptionsDocument(IEnumerable<BsonElement> elements)
Parameters
elementsIEnumerable<BsonElement>A list of elements to add to the document.
GeoHaystackSearchOptionsDocument(IEnumerable<KeyValuePair<string, object>>)
Initializes a new instance of the GeoHaystackSearchOptionsDocument class and adds new elements from a dictionary of key/value pairs.
public GeoHaystackSearchOptionsDocument(IEnumerable<KeyValuePair<string, object>> dictionary)
Parameters
dictionaryIEnumerable<KeyValuePair<string, object>>A dictionary to initialize the document from.
GeoHaystackSearchOptionsDocument(IDictionary)
Initializes a new instance of the GeoHaystackSearchOptionsDocument class and adds new elements from a dictionary of key/value pairs.
public GeoHaystackSearchOptionsDocument(IDictionary dictionary)
Parameters
dictionaryIDictionaryA dictionary to initialize the document from.
GeoHaystackSearchOptionsDocument(IDictionary, IEnumerable)
Initializes a new instance of the GeoHaystackSearchOptionsDocument class and adds new elements from a dictionary of key/value pairs.
[Obsolete("Use GeoHaystackSearchOptionsDocument<IEnumerable<BsonElement> elements) instead.")]
public GeoHaystackSearchOptionsDocument(IDictionary dictionary, IEnumerable keys)
Parameters
dictionaryIDictionaryA dictionary to initialize the document from.
keysIEnumerableA list of keys to select values from the dictionary.
GeoHaystackSearchOptionsDocument(string, BsonValue)
Initializes a new instance of the GeoHaystackSearchOptionsDocument class and creates and adds a new element.
public GeoHaystackSearchOptionsDocument(string name, BsonValue value)