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

A builder for the options used when creating an index.
파일 보기 프로젝트 열기: CloudMetal/mongo-csharp-driver

공개 메소드들

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

메소드 상세

SetBackground() 공개 정적인 메소드

Sets whether to build the index in the background.
public static 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 static SetBucketSize ( double value ) : IndexOptionsBuilder
value double The bucket size.
리턴 IndexOptionsBuilder

SetDropDups() 공개 정적인 메소드

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

SetGeoSpatialRange() 공개 정적인 메소드

Sets the geospatial range.
public static 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 static SetName ( string value ) : IndexOptionsBuilder
value string The name of the index.
리턴 IndexOptionsBuilder

SetSparse() 공개 정적인 메소드

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

SetTimeToLive() 공개 정적인 메소드

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

SetUnique() 공개 정적인 메소드

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