메소드 | 설명 | |
---|---|---|
CollectionOptionsBuilder ( ) : System |
Initializes a new instance of the CollectionOptionsBuilder class.
|
|
SetAutoIndexId ( bool value ) : |
Sets whether to automatically create an index on the _id element.
|
|
SetCapped ( bool value ) : |
Sets whether the collection is capped.
|
|
SetMaxDocuments ( long value ) : |
Sets the max number of documents in a capped collection.
|
|
SetMaxSize ( long value ) : |
Sets the max size of a capped collection.
|
|
ToBsonDocument ( ) : BsonDocument |
Returns the result of the builder as a BsonDocument.
|
메소드 | 설명 | |
---|---|---|
Serialize ( BsonWriter bsonWriter, |
Serializes the result of the builder to a BsonWriter.
|
protected Serialize ( BsonWriter bsonWriter, |
||
bsonWriter | BsonWriter | The writer. |
nominalType | The nominal type. | |
options | IBsonSerializationOptions | The serialization options. |
리턴 | void |
public SetAutoIndexId ( bool value ) : |
||
value | bool | Whether to automatically create an index on the _id element. |
리턴 |
public SetCapped ( bool value ) : |
||
value | bool | Whether the collection is capped. |
리턴 |
public SetMaxDocuments ( long value ) : |
||
value | long | The max number of documents. |
리턴 |
public SetMaxSize ( long value ) : |
||
value | long | The max size. |
리턴 |