Table of Contents

Method SetMaxSize

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

SetMaxSize(long)

Sets the max size of a capped collection.

public CollectionOptionsBuilder SetMaxSize(long value)

Parameters

value long

The max size.

Returns

CollectionOptionsBuilder

The builder (so method calls can be chained).