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

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

공개 메소드들

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