Table of Contents

Method IsInfiniteOrGreaterThanZero

Namespace
MongoDB.Driver.Core.Misc
Assembly
MongoDB.Driver.Core.dll

IsInfiniteOrGreaterThanZero(TimeSpan, string)

Ensures that the value of a parameter is infinite or greater than zero.

public static TimeSpan IsInfiniteOrGreaterThanZero(TimeSpan value, string paramName)

Parameters

value TimeSpan

The value of the parameter.

paramName string

The name of the parameter.

Returns

TimeSpan

The value of the parameter.