Ensure Class (original) (raw)

Represents methods that can be used to ensure that parameter values meet expected conditions.

Inheritance Hierarchy

Namespace: MongoDB.Driver.Core.Misc
Assembly: MongoDB.Driver.Core (in MongoDB.Driver.Core.dll) Version: 2.10.0+569905ff5e778c38ea19d9d0392496a83e1704ed

Syntax

public static class Ensure

Public NotInheritable Class Ensure

[] [] type Ensure = class end

The Ensure type exposes the following members.

Methods

| | Name | Description | | | ----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------- | | Public methodStatic member | IsBetweenT | Ensures that the value of a parameter is between a minimum and a maximum value. | | Public methodStatic member | IsEqualToT | Ensures that the value of a parameter is equal to a comparand. | | Public methodStatic member | IsGreaterThanOrEqualToT | Ensures that the value of a parameter is greater than or equal to a comparand. | | Public methodStatic member | IsGreaterThanOrEqualToZero(Int32, String) | Ensures that the value of a parameter is greater than or equal to zero. | | Public methodStatic member | IsGreaterThanOrEqualToZero(Int64, String) | Ensures that the value of a parameter is greater than or equal to zero. | | Public methodStatic member | IsGreaterThanOrEqualToZero(TimeSpan, String) | Ensures that the value of a parameter is greater than or equal to zero. | | Public methodStatic member | IsGreaterThanZero(Int32, String) | Ensures that the value of a parameter is greater than zero. | | Public methodStatic member | IsGreaterThanZero(Int64, String) | Ensures that the value of a parameter is greater than zero. | | Public methodStatic member | IsGreaterThanZero(TimeSpan, String) | Ensures that the value of a parameter is greater than zero. | | Public methodStatic member | IsInfiniteOrGreaterThanOrEqualToZero | Ensures that the value of a parameter is infinite or greater than or equal to zero. | | Public methodStatic member | IsInfiniteOrGreaterThanZero | Ensures that the value of a parameter is infinite or greater than zero. | | Public methodStatic member | IsNotNullT | Ensures that the value of a parameter is not null. | | Public methodStatic member | IsNotNullOrEmpty | Ensures that the value of a parameter is not null or empty. | | Public methodStatic member | IsNullT | Ensures that the value of a parameter is null. | | Public methodStatic member | IsNullOrGreaterThanOrEqualToZero(NullableInt32, String) | Ensures that the value of a parameter is null or greater than or equal to zero. | | Public methodStatic member | IsNullOrGreaterThanOrEqualToZero(NullableInt64, String) | Ensures that the value of a parameter is null or greater than or equal to zero. | | Public methodStatic member | IsNullOrGreaterThanZero(NullableInt32, String) | Ensures that the value of a parameter is null or greater than zero. | | Public methodStatic member | IsNullOrGreaterThanZero(NullableInt64, String) | Ensures that the value of a parameter is null or greater than zero. | | Public methodStatic member | IsNullOrGreaterThanZero(NullableTimeSpan, String) | Ensures that the value of a parameter is null or greater than zero. | | Public methodStatic member | IsNullOrInfiniteOrGreaterThanOrEqualToZero | Ensures that the value of a parameter is null, or infinite, or greater than or equal to zero. | | Public methodStatic member | IsNullOrNotEmpty | Ensures that the value of a parameter is null or not empty. | | Public methodStatic member | IsNullOrValidTimeout | Ensures that the value of a parameter is null or a valid timeout. | | Public methodStatic member | IsValidTimeout | Ensures that the value of a parameter is a valid timeout. | | Public methodStatic member | That(Boolean, String) | Ensures that an assertion is true. | | Public methodStatic member | That(Boolean, String, String) | Ensures that an assertion is true. | | Public methodStatic member | ThatT(T, FuncT, Boolean, String, String) | Ensures that the value of a parameter meets an assertion. |

Top

See Also

Reference