Table of Contents

Method IsGreaterThanOrEqualToZero

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

IsGreaterThanOrEqualToZero(int, string)

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

public static int IsGreaterThanOrEqualToZero(int value, string paramName)

Parameters

value int

The value of the parameter.

paramName string

The name of the parameter.

Returns

int

The value of the parameter.

IsGreaterThanOrEqualToZero(long, string)

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

public static long IsGreaterThanOrEqualToZero(long value, string paramName)

Parameters

value long

The value of the parameter.

paramName string

The name of the parameter.

Returns

long

The value of the parameter.

IsGreaterThanOrEqualToZero(TimeSpan, string)

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

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