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

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

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

Метод Описание
Ascending ( ) : IndexKeysBuilder

Sets one or more key names to index in ascending order.

Descending ( ) : IndexKeysBuilder

Sets one or more key names to index in descending order.

GeoSpatial ( string name ) : IndexKeysBuilder

Sets the key name to create a geospatial index on.

GeoSpatialHaystack ( string name ) : IndexKeysBuilder

Sets the key name to create a geospatial haystack index on.

GeoSpatialHaystack ( string name, string additionalName ) : IndexKeysBuilder

Sets the key name and additional field name to create a geospatial haystack index on.

IndexKeysBuilder ( ) : System

Initializes a new instance of the IndexKeysBuilder class.

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.

Описание методов

Ascending() публичный Метод

Sets one or more key names to index in ascending order.
public Ascending ( ) : IndexKeysBuilder
Результат IndexKeysBuilder

Descending() публичный Метод

Sets one or more key names to index in descending order.
public Descending ( ) : IndexKeysBuilder
Результат IndexKeysBuilder

GeoSpatial() публичный Метод

Sets the key name to create a geospatial index on.
public GeoSpatial ( string name ) : IndexKeysBuilder
name string The key name.
Результат IndexKeysBuilder

GeoSpatialHaystack() публичный Метод

Sets the key name to create a geospatial haystack index on.
public GeoSpatialHaystack ( string name ) : IndexKeysBuilder
name string The key name.
Результат IndexKeysBuilder

GeoSpatialHaystack() публичный Метод

Sets the key name and additional field name to create a geospatial haystack index on.
public GeoSpatialHaystack ( string name, string additionalName ) : IndexKeysBuilder
name string The key name.
additionalName string The name of an additional field to index.
Результат IndexKeysBuilder

IndexKeysBuilder() публичный Метод

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

ToBsonDocument() публичный Метод

Returns the result of the builder as a BsonDocument.
public ToBsonDocument ( ) : BsonDocument
Результат BsonDocument