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

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

공개 메소드들

메소드 설명
CollectionOptionsBuilder ( ) : System

Initializes a new instance of the CollectionOptionsBuilder class.

SetAutoIndexId ( bool value ) : CollectionOptionsBuilder

Sets whether to automatically create an index on the _id element.

SetCapped ( bool value ) : CollectionOptionsBuilder

Sets whether the collection is capped.

SetMaxDocuments ( long value ) : CollectionOptionsBuilder

Sets the max number of documents in a capped collection.

SetMaxSize ( long value ) : CollectionOptionsBuilder

Sets the max size of a capped collection.

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.

메소드 상세

CollectionOptionsBuilder() 공개 메소드

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

SetAutoIndexId() 공개 메소드

Sets whether to automatically create an index on the _id element.
public SetAutoIndexId ( bool value ) : CollectionOptionsBuilder
value bool Whether to automatically create an index on the _id element.
리턴 CollectionOptionsBuilder

SetCapped() 공개 메소드

Sets whether the collection is capped.
public SetCapped ( bool value ) : CollectionOptionsBuilder
value bool Whether the collection is capped.
리턴 CollectionOptionsBuilder

SetMaxDocuments() 공개 메소드

Sets the max number of documents in a capped collection.
public SetMaxDocuments ( long value ) : CollectionOptionsBuilder
value long The max number of documents.
리턴 CollectionOptionsBuilder

SetMaxSize() 공개 메소드

Sets the max size of a capped collection.
public SetMaxSize ( long value ) : CollectionOptionsBuilder
value long The max size.
리턴 CollectionOptionsBuilder

ToBsonDocument() 공개 메소드

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