Ensure Class |
Namespace: MongoDB.Driver.Core.Misc
The Ensure type exposes the following members.
Name | Description | |
---|---|---|
HasValueT |
Ensures that the value of a parameter is not null.
| |
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.
|