C# 클래스 MongoDB.Driver.Builders.GeoHaystackSearchOptionsBuilder

상속: BuilderBase, IMongoGeoHaystackSearchOptions
파일 보기 프로젝트 열기: CloudMetal/mongo-csharp-driver

공개 메소드들

메소드 설명
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.

보호된 메소드들

메소드 설명
Serialize ( BsonWriter bsonWriter, Type nominalType, IBsonSerializationOptions options ) : void

Serializes the result of the builder to a BsonWriter.

메소드 상세

GeoHaystackSearchOptionsBuilder() 공개 메소드

Initializes a new instance of the GeoHaystackSearchOptionsBuilder class.
public GeoHaystackSearchOptionsBuilder ( ) : System
리턴 System

Serialize() 보호된 메소드

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.
리턴 void

SetLimit() 공개 메소드

Sets the maximum number of results to return.
public SetLimit ( int value ) : GeoHaystackSearchOptionsBuilder
value int The maximum number of results to return.
리턴 GeoHaystackSearchOptionsBuilder

SetMaxDistance() 공개 메소드

Sets the max distance.
public SetMaxDistance ( double value ) : GeoHaystackSearchOptionsBuilder
value double The max distance.
리턴 GeoHaystackSearchOptionsBuilder

SetQuery() 공개 메소드

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.
리턴 GeoHaystackSearchOptionsBuilder

ToBsonDocument() 공개 메소드

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