Table of Contents

Method SetTimeToLive

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

SetTimeToLive(TimeSpan)

Sets the time to live value.

public IndexOptionsBuilder<TDocument> SetTimeToLive(TimeSpan timeToLive)

Parameters

timeToLive TimeSpan

The time to live.

Returns

IndexOptionsBuilder<TDocument>

The builder (so method calls can be chained).