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

상속: BuilderBase, IMongoGeoNearOptions
파일 보기 프로젝트 열기: CloudMetal/mongo-csharp-driver 1 사용 예제들

공개 메소드들

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

보호된 메소드들

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

Serializes the result of the builder to a BsonWriter.

메소드 상세

GeoNearOptionsBuilder() 공개 메소드

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

SetDistanceMultiplier() 공개 메소드

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

SetMaxDistance() 공개 메소드

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

SetSpherical() 공개 메소드

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

ToBsonDocument() 공개 메소드

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