C# Class MongoDB.Driver.Builders.GeoNearOptionsBuilder

Inheritance: BuilderBase, IMongoGeoNearOptions
Afficher le fichier Open project: CloudMetal/mongo-csharp-driver Class Usage Examples

Méthodes publiques

Méthode 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.

Méthodes protégées

Méthode Description
Serialize ( BsonWriter bsonWriter, Type nominalType, IBsonSerializationOptions options ) : void

Serializes the result of the builder to a BsonWriter.

Method Details

GeoNearOptionsBuilder() public méthode

Initializes a new instance of the GeoNearOptionsBuilder class.
public GeoNearOptionsBuilder ( ) : System
Résultat System

Serialize() protected méthode

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.
Résultat void

SetDistanceMultiplier() public méthode

Sets the distance multiplier.
public SetDistanceMultiplier ( double value ) : GeoNearOptionsBuilder
value double The distance multiplier.
Résultat GeoNearOptionsBuilder

SetMaxDistance() public méthode

Sets the max distance.
public SetMaxDistance ( double value ) : GeoNearOptionsBuilder
value double The max distance.
Résultat GeoNearOptionsBuilder

SetSpherical() public méthode

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

ToBsonDocument() public méthode

Returns the result of the builder as a BsonDocument.
public ToBsonDocument ( ) : BsonDocument
Résultat BsonDocument