Method | Description | |
---|---|---|
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.
|
Method | Description | |
---|---|---|
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. |
return | void |
public SetAutoIndexId ( bool value ) : |
||
value | bool | Whether to automatically create an index on the _id element. |
return |
public SetCapped ( bool value ) : |
||
value | bool | Whether the collection is capped. |
return |
public SetMaxDocuments ( long value ) : |
||
value | long | The max number of documents. |
return |
public SetMaxSize ( long value ) : |
||
value | long | The max size. |
return |