C# Класс MongoDB.Driver.Builders.GeoNearOptionsBuilder

Наследование: BuilderBase, IMongoGeoNearOptions
Показать файл Открыть проект Примеры использования класса

Открытые методы

Метод Описание
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