Table of Contents

Method SetMaxDocuments

Namespace
MongoDB.Driver.Builders
Assembly
MongoDB.Driver.Legacy.dll

SetMaxDocuments(long)

Sets the max number of documents in a capped collection.

public static CollectionOptionsBuilder SetMaxDocuments(long value)

Parameters

value long

The max number of documents.

Returns

CollectionOptionsBuilder

The builder (so method calls can be chained).