C# Class MongoDB.Driver.GeoNearOptionsDocument

Represents a BSON document that can be used where an IMongoGeoNearOptions is expected.
Inheritance: BsonDocument, IMongoGeoNearOptions
Mostrar archivo Open project: CloudMetal/mongo-csharp-driver Class Usage Examples

Public Methods

Method Description
GeoNearOptionsDocument ( ) : System

Initializes a new instance of the GeoNearOptionsDocument class.

GeoNearOptionsDocument ( BsonElement element ) : System

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

GeoNearOptionsDocument ( object>.Dictionary dictionary ) : System

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

GeoNearOptionsDocument ( IDictionary dictionary ) : System

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

GeoNearOptionsDocument ( IEnumerable elements ) : System

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

GeoNearOptionsDocument ( object>.IEnumerable dictionary ) : System

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

GeoNearOptionsDocument ( bool allowDuplicateNames ) : System

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

GeoNearOptionsDocument ( string name, BsonValue value ) : System

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

Private Methods

Method Description
GeoNearOptionsDocument ( object>.Dictionary dictionary, IEnumerable keys ) : System
GeoNearOptionsDocument ( IDictionary dictionary, IEnumerable keys ) : System
GeoNearOptionsDocument ( object>.IDictionary dictionary, IEnumerable keys ) : System

Method Details

GeoNearOptionsDocument() public method

Initializes a new instance of the GeoNearOptionsDocument class.
public GeoNearOptionsDocument ( ) : System
return System

GeoNearOptionsDocument() public method

Initializes a new instance of the GeoNearOptionsDocument class and adds one element.
public GeoNearOptionsDocument ( BsonElement element ) : System
element BsonElement An element to add to the document.
return System

GeoNearOptionsDocument() public method

Initializes a new instance of the GeoNearOptionsDocument class and adds new elements from a dictionary of key/value pairs.
public GeoNearOptionsDocument ( object>.Dictionary dictionary ) : System
dictionary object>.Dictionary A dictionary to initialize the document from.
return System

GeoNearOptionsDocument() public method

Initializes a new instance of the GeoNearOptionsDocument class and adds new elements from a dictionary of key/value pairs.
public GeoNearOptionsDocument ( IDictionary dictionary ) : System
dictionary IDictionary A dictionary to initialize the document from.
return System

GeoNearOptionsDocument() public method

Initializes a new instance of the GeoNearOptionsDocument class and adds new elements from a list of elements.
public GeoNearOptionsDocument ( IEnumerable elements ) : System
elements IEnumerable A list of elements to add to the document.
return System

GeoNearOptionsDocument() public method

Initializes a new instance of the GeoNearOptionsDocument class and adds new elements from a dictionary of key/value pairs.
public GeoNearOptionsDocument ( object>.IEnumerable dictionary ) : System
dictionary object>.IEnumerable A dictionary to initialize the document from.
return System

GeoNearOptionsDocument() public method

Initializes a new instance of the GeoNearOptionsDocument class specifying whether duplicate element names are allowed (allowing duplicate element names is not recommended).
public GeoNearOptionsDocument ( bool allowDuplicateNames ) : System
allowDuplicateNames bool Whether duplicate element names are allowed.
return System

GeoNearOptionsDocument() public method

Initializes a new instance of the GeoNearOptionsDocument class and creates and adds a new element.
public GeoNearOptionsDocument ( 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.
return System