C# Class MongoDB.Driver.Builders.GeoHaystackSearchOptionsBuilder

Inheritance: BuilderBase, IMongoGeoHaystackSearchOptions
Afficher le fichier Open project: CloudMetal/mongo-csharp-driver

Méthodes publiques

Méthode Description
GeoHaystackSearchOptionsBuilder ( ) : System

Initializes a new instance of the GeoHaystackSearchOptionsBuilder class.

SetLimit ( int value ) : GeoHaystackSearchOptionsBuilder

Sets the maximum number of results to return.

SetMaxDistance ( double value ) : GeoHaystackSearchOptionsBuilder

Sets the max distance.

SetQuery ( string additionalFieldName, BsonValue value ) : GeoHaystackSearchOptionsBuilder

Sets the query on the optional additional field.

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

GeoHaystackSearchOptionsBuilder() public méthode

Initializes a new instance of the GeoHaystackSearchOptionsBuilder class.
public GeoHaystackSearchOptionsBuilder ( ) : 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

SetLimit() public méthode

Sets the maximum number of results to return.
public SetLimit ( int value ) : GeoHaystackSearchOptionsBuilder
value int The maximum number of results to return.
Résultat GeoHaystackSearchOptionsBuilder

SetMaxDistance() public méthode

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

SetQuery() public méthode

Sets the query on the optional additional field.
public SetQuery ( string additionalFieldName, BsonValue value ) : GeoHaystackSearchOptionsBuilder
additionalFieldName string The name of the additional field.
value BsonValue The value fo the additional field.
Résultat GeoHaystackSearchOptionsBuilder

ToBsonDocument() public méthode

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