Table of Contents

Method IsValidTimeout

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

IsValidTimeout(TimeSpan, string)

Ensures that the value of a parameter is a valid timeout.

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