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

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

공개 메소드들

메소드 설명
IndexOptionsBuilder ( ) : System

Initializes a new instance of the IndexOptionsBuilder class.

SetBackground ( bool value ) : IndexOptionsBuilder

Sets whether to build the index in the background.

SetBucketSize ( double value ) : IndexOptionsBuilder

Sets the bucket size for geospatial haystack indexes.

SetDropDups ( bool value ) : IndexOptionsBuilder

Sets whether duplicates should be dropped.

SetGeoSpatialRange ( double min, double max ) : IndexOptionsBuilder

Sets the geospatial range.

SetName ( string value ) : IndexOptionsBuilder

Sets the name of the index.

SetSparse ( bool value ) : IndexOptionsBuilder

Sets whether the index is a sparse index.

SetTimeToLive ( System.TimeSpan timeToLive ) : IndexOptionsBuilder

Sets the time to live value.

SetUnique ( bool value ) : IndexOptionsBuilder

Sets whether the index enforces unique values.

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.

메소드 상세

IndexOptionsBuilder() 공개 메소드

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

SetBackground() 공개 메소드

Sets whether to build the index in the background.
public SetBackground ( bool value ) : IndexOptionsBuilder
value bool Whether to build the index in the background.
리턴 IndexOptionsBuilder

SetBucketSize() 공개 메소드

Sets the bucket size for geospatial haystack indexes.
public SetBucketSize ( double value ) : IndexOptionsBuilder
value double The bucket size.
리턴 IndexOptionsBuilder

SetDropDups() 공개 메소드

Sets whether duplicates should be dropped.
public SetDropDups ( bool value ) : IndexOptionsBuilder
value bool Whether duplicates should be dropped.
리턴 IndexOptionsBuilder

SetGeoSpatialRange() 공개 메소드

Sets the geospatial range.
public SetGeoSpatialRange ( double min, double max ) : IndexOptionsBuilder
min double The min value of the range.
max double The max value of the range.
리턴 IndexOptionsBuilder

SetName() 공개 메소드

Sets the name of the index.
public SetName ( string value ) : IndexOptionsBuilder
value string The name of the index.
리턴 IndexOptionsBuilder

SetSparse() 공개 메소드

Sets whether the index is a sparse index.
public SetSparse ( bool value ) : IndexOptionsBuilder
value bool Whether the index is a sparse index.
리턴 IndexOptionsBuilder

SetTimeToLive() 공개 메소드

Sets the time to live value.
public SetTimeToLive ( System.TimeSpan timeToLive ) : IndexOptionsBuilder
timeToLive System.TimeSpan The time to live.
리턴 IndexOptionsBuilder

SetUnique() 공개 메소드

Sets whether the index enforces unique values.
public SetUnique ( bool value ) : IndexOptionsBuilder
value bool Whether the index enforces unique values.
리턴 IndexOptionsBuilder

ToBsonDocument() 공개 메소드

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