Table of Contents

Method IsInfiniteOrGreaterThanOrEqualToZero

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

IsInfiniteOrGreaterThanOrEqualToZero(TimeSpan, string)

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

public static TimeSpan IsInfiniteOrGreaterThanOrEqualToZero(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.