Table of Contents

Method SetTimeToLive

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

SetTimeToLive(TimeSpan)

Sets the time to live value.

public IndexOptionsBuilder SetTimeToLive(TimeSpan timeToLive)

Parameters

timeToLive TimeSpan

The time to live.

Returns

IndexOptionsBuilder

The builder (so method calls can be chained).