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