Метод | Описание | |
---|---|---|
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.
|
public CollectionOptionsBuilder ( ) : System | ||
Результат | System |
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. |
Результат |