Sets the max size of a capped collection.

Namespace: MongoDB.Driver.Builders
Assembly: MongoDB.Driver (in MongoDB.Driver.dll) Version: 1.2.0.4274

Syntax

C#
public static CollectionOptionsBuilder SetMaxSize(
	long value
)
Visual Basic
Public Shared Function SetMaxSize ( _
	value As Long _
) As CollectionOptionsBuilder
Visual C++
public:
static CollectionOptionsBuilder^ SetMaxSize(
	long long value
)

Parameters

value
Type: System..::..Int64
The max size.

Return Value

The builder (so method calls can be chained).

See Also