C# Class MongoDB.Driver.Builders.GeoNearOptionsBuilder

Inheritance: BuilderBase, IMongoGeoNearOptions
Show file Open project: CloudMetal/mongo-csharp-driver Class Usage Examples

Public Methods

Method Description
GeoNearOptionsBuilder ( ) : System

Initializes a new instance of the GeoNearOptionsBuilder class.

SetDistanceMultiplier ( double value ) : GeoNearOptionsBuilder

Sets the distance multiplier.

SetMaxDistance ( double value ) : GeoNearOptionsBuilder

Sets the max distance.

SetSpherical ( bool value ) : GeoNearOptionsBuilder

Sets whether to use a spherical search.

ToBsonDocument ( ) : BsonDocument

Returns the result of the builder as a BsonDocument.

Protected Methods

Method Description
Serialize ( BsonWriter bsonWriter, Type nominalType, IBsonSerializationOptions options ) : void

Serializes the result of the builder to a BsonWriter.

Method Details

GeoNearOptionsBuilder() public method

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

Serialize() protected method

Serializes the result of the builder to a BsonWriter.
protected Serialize ( BsonWriter bsonWriter, Type nominalType, IBsonSerializationOptions options ) : void
bsonWriter BsonWriter The writer.
nominalType System.Type The nominal type.
options IBsonSerializationOptions The serialization options.
return void

SetDistanceMultiplier() public method

Sets the distance multiplier.
public SetDistanceMultiplier ( double value ) : GeoNearOptionsBuilder
value double The distance multiplier.
return GeoNearOptionsBuilder

SetMaxDistance() public method

Sets the max distance.
public SetMaxDistance ( double value ) : GeoNearOptionsBuilder
value double The max distance.
return GeoNearOptionsBuilder

SetSpherical() public method

Sets whether to use a spherical search.
public SetSpherical ( bool value ) : GeoNearOptionsBuilder
value bool Whether to use a spherical search.
return GeoNearOptionsBuilder

ToBsonDocument() public method

Returns the result of the builder as a BsonDocument.
public ToBsonDocument ( ) : BsonDocument
return BsonDocument