Table of Contents

Method IsNullOrValidTimeout

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

IsNullOrValidTimeout(TimeSpan?, string)

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

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