Guard.IsNotBetweenOrEqualTo Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Overloads
IsNotBetweenOrEqualTo(SByte, SByte, SByte, String) |
Asserts that the input value must not be in a given interval. |
IsNotBetweenOrEqualTo(UInt64, UInt64, UInt64, String) |
Asserts that the input value must not be in a given interval. |
IsNotBetweenOrEqualTo(UInt32, UInt32, UInt32, String) |
Asserts that the input value must not be in a given interval. |
IsNotBetweenOrEqualTo(UInt16, UInt16, UInt16, String) |
Asserts that the input value must not be in a given interval. |
IsNotBetweenOrEqualTo(Single, Single, Single, String) |
Asserts that the input value must not be in a given interval. |
IsNotBetweenOrEqualTo(UIntPtr, UIntPtr, UIntPtr, String) |
Asserts that the input value must not be in a given interval. |
IsNotBetweenOrEqualTo(IntPtr, IntPtr, IntPtr, String) |
Asserts that the input value must not be in a given interval. |
IsNotBetweenOrEqualTo(Int32, Int32, Int32, String) |
Asserts that the input value must not be in a given interval. |
IsNotBetweenOrEqualTo(Int16, Int16, Int16, String) |
Asserts that the input value must not be in a given interval. |
IsNotBetweenOrEqualTo(Double, Double, Double, String) |
Asserts that the input value must not be in a given interval. |
IsNotBetweenOrEqualTo(Decimal, Decimal, Decimal, String) |
Asserts that the input value must not be in a given interval. |
IsNotBetweenOrEqualTo(Char, Char, Char, String) |
Asserts that the input value must not be in a given interval. |
IsNotBetweenOrEqualTo(Byte, Byte, Byte, String) |
Asserts that the input value must not be in a given interval. |
IsNotBetweenOrEqualTo(Int64, Int64, Int64, String) |
Asserts that the input value must not be in a given interval. |
IsNotBetweenOrEqualTo<T>(T, T, T, String) |
Asserts that the input value must not be in a given interval. |
IsNotBetweenOrEqualTo(SByte, SByte, SByte, String)
Asserts that the input value must not be in a given interval.
public static void IsNotBetweenOrEqualTo (sbyte value, sbyte minimum, sbyte maximum, string name);
static member IsNotBetweenOrEqualTo : sbyte * sbyte * sbyte * string -> unit
Public Shared Sub IsNotBetweenOrEqualTo (value As SByte, minimum As SByte, maximum As SByte, name As String)
Parameters
- name
- String
The name of the input parameter being tested.
Exceptions
Thrown if value
is >= minimum
or <= maximum
.
Remarks
This API asserts the equivalent of "value
not in [minimum
, maximum
]", using arithmetic notation. The method is generic to avoid boxing the parameters, if they are value types.
Applies to
IsNotBetweenOrEqualTo(UInt64, UInt64, UInt64, String)
Asserts that the input value must not be in a given interval.
public static void IsNotBetweenOrEqualTo (ulong value, ulong minimum, ulong maximum, string name);
static member IsNotBetweenOrEqualTo : uint64 * uint64 * uint64 * string -> unit
Public Shared Sub IsNotBetweenOrEqualTo (value As ULong, minimum As ULong, maximum As ULong, name As String)
Parameters
- name
- String
The name of the input parameter being tested.
Exceptions
Thrown if value
is >= minimum
or <= maximum
.
Remarks
This API asserts the equivalent of "value
not in [minimum
, maximum
]", using arithmetic notation. The method is generic to avoid boxing the parameters, if they are value types.
Applies to
IsNotBetweenOrEqualTo(UInt32, UInt32, UInt32, String)
Asserts that the input value must not be in a given interval.
public static void IsNotBetweenOrEqualTo (uint value, uint minimum, uint maximum, string name);
static member IsNotBetweenOrEqualTo : uint32 * uint32 * uint32 * string -> unit
Public Shared Sub IsNotBetweenOrEqualTo (value As UInteger, minimum As UInteger, maximum As UInteger, name As String)
Parameters
- name
- String
The name of the input parameter being tested.
Exceptions
Thrown if value
is >= minimum
or <= maximum
.
Remarks
This API asserts the equivalent of "value
not in [minimum
, maximum
]", using arithmetic notation. The method is generic to avoid boxing the parameters, if they are value types.
Applies to
IsNotBetweenOrEqualTo(UInt16, UInt16, UInt16, String)
Asserts that the input value must not be in a given interval.
public static void IsNotBetweenOrEqualTo (ushort value, ushort minimum, ushort maximum, string name);
static member IsNotBetweenOrEqualTo : uint16 * uint16 * uint16 * string -> unit
Public Shared Sub IsNotBetweenOrEqualTo (value As UShort, minimum As UShort, maximum As UShort, name As String)
Parameters
- name
- String
The name of the input parameter being tested.
Exceptions
Thrown if value
is >= minimum
or <= maximum
.
Remarks
This API asserts the equivalent of "value
not in [minimum
, maximum
]", using arithmetic notation. The method is generic to avoid boxing the parameters, if they are value types.
Applies to
IsNotBetweenOrEqualTo(Single, Single, Single, String)
Asserts that the input value must not be in a given interval.
public static void IsNotBetweenOrEqualTo (float value, float minimum, float maximum, string name);
static member IsNotBetweenOrEqualTo : single * single * single * string -> unit
Public Shared Sub IsNotBetweenOrEqualTo (value As Single, minimum As Single, maximum As Single, name As String)
Parameters
- name
- String
The name of the input parameter being tested.
Exceptions
Thrown if value
is >= minimum
or <= maximum
.
Remarks
This API asserts the equivalent of "value
not in [minimum
, maximum
]", using arithmetic notation. The method is generic to avoid boxing the parameters, if they are value types.
Applies to
IsNotBetweenOrEqualTo(UIntPtr, UIntPtr, UIntPtr, String)
Asserts that the input value must not be in a given interval.
public static void IsNotBetweenOrEqualTo (nuint value, nuint minimum, nuint maximum, string name);
static member IsNotBetweenOrEqualTo : unativeint * unativeint * unativeint * string -> unit
Public Shared Sub IsNotBetweenOrEqualTo (value As UIntPtr, minimum As UIntPtr, maximum As UIntPtr, name As String)
Parameters
- value
-
UIntPtr
nuint
unativeint
The input nuint
value to test.
- minimum
-
UIntPtr
nuint
unativeint
The inclusive minimum nuint
value that is accepted.
- maximum
-
UIntPtr
nuint
unativeint
The inclusive maximum nuint
value that is accepted.
- name
- String
The name of the input parameter being tested.
Exceptions
Thrown if value
is >= minimum
or <= maximum
.
Remarks
This API asserts the equivalent of "value
not in [minimum
, maximum
]", using arithmetic notation. The method is generic to avoid boxing the parameters, if they are value types.
Applies to
IsNotBetweenOrEqualTo(IntPtr, IntPtr, IntPtr, String)
Asserts that the input value must not be in a given interval.
public static void IsNotBetweenOrEqualTo (nint value, nint minimum, nint maximum, string name);
static member IsNotBetweenOrEqualTo : nativeint * nativeint * nativeint * string -> unit
Public Shared Sub IsNotBetweenOrEqualTo (value As IntPtr, minimum As IntPtr, maximum As IntPtr, name As String)
Parameters
- value
-
IntPtr
nint
nativeint
The input nint
value to test.
- minimum
-
IntPtr
nint
nativeint
The inclusive minimum nint
value that is accepted.
- maximum
-
IntPtr
nint
nativeint
The inclusive maximum nint
value that is accepted.
- name
- String
The name of the input parameter being tested.
Exceptions
Thrown if value
is >= minimum
or <= maximum
.
Remarks
This API asserts the equivalent of "value
not in [minimum
, maximum
]", using arithmetic notation. The method is generic to avoid boxing the parameters, if they are value types.
Applies to
IsNotBetweenOrEqualTo(Int32, Int32, Int32, String)
Asserts that the input value must not be in a given interval.
public static void IsNotBetweenOrEqualTo (int value, int minimum, int maximum, string name);
static member IsNotBetweenOrEqualTo : int * int * int * string -> unit
Public Shared Sub IsNotBetweenOrEqualTo (value As Integer, minimum As Integer, maximum As Integer, name As String)
Parameters
- name
- String
The name of the input parameter being tested.
Exceptions
Thrown if value
is >= minimum
or <= maximum
.
Remarks
This API asserts the equivalent of "value
not in [minimum
, maximum
]", using arithmetic notation. The method is generic to avoid boxing the parameters, if they are value types.
Applies to
IsNotBetweenOrEqualTo(Int16, Int16, Int16, String)
Asserts that the input value must not be in a given interval.
public static void IsNotBetweenOrEqualTo (short value, short minimum, short maximum, string name);
static member IsNotBetweenOrEqualTo : int16 * int16 * int16 * string -> unit
Public Shared Sub IsNotBetweenOrEqualTo (value As Short, minimum As Short, maximum As Short, name As String)
Parameters
- name
- String
The name of the input parameter being tested.
Exceptions
Thrown if value
is >= minimum
or <= maximum
.
Remarks
This API asserts the equivalent of "value
not in [minimum
, maximum
]", using arithmetic notation. The method is generic to avoid boxing the parameters, if they are value types.
Applies to
IsNotBetweenOrEqualTo(Double, Double, Double, String)
Asserts that the input value must not be in a given interval.
public static void IsNotBetweenOrEqualTo (double value, double minimum, double maximum, string name);
static member IsNotBetweenOrEqualTo : double * double * double * string -> unit
Public Shared Sub IsNotBetweenOrEqualTo (value As Double, minimum As Double, maximum As Double, name As String)
Parameters
- name
- String
The name of the input parameter being tested.
Exceptions
Thrown if value
is >= minimum
or <= maximum
.
Remarks
This API asserts the equivalent of "value
not in [minimum
, maximum
]", using arithmetic notation. The method is generic to avoid boxing the parameters, if they are value types.
Applies to
IsNotBetweenOrEqualTo(Decimal, Decimal, Decimal, String)
Asserts that the input value must not be in a given interval.
public static void IsNotBetweenOrEqualTo (decimal value, decimal minimum, decimal maximum, string name);
static member IsNotBetweenOrEqualTo : decimal * decimal * decimal * string -> unit
Public Shared Sub IsNotBetweenOrEqualTo (value As Decimal, minimum As Decimal, maximum As Decimal, name As String)
Parameters
- name
- String
The name of the input parameter being tested.
Exceptions
Thrown if value
is >= minimum
or <= maximum
.
Remarks
This API asserts the equivalent of "value
not in [minimum
, maximum
]", using arithmetic notation. The method is generic to avoid boxing the parameters, if they are value types.
Applies to
IsNotBetweenOrEqualTo(Char, Char, Char, String)
Asserts that the input value must not be in a given interval.
public static void IsNotBetweenOrEqualTo (char value, char minimum, char maximum, string name);
static member IsNotBetweenOrEqualTo : char * char * char * string -> unit
Public Shared Sub IsNotBetweenOrEqualTo (value As Char, minimum As Char, maximum As Char, name As String)
Parameters
- name
- String
The name of the input parameter being tested.
Exceptions
Thrown if value
is >= minimum
or <= maximum
.
Remarks
This API asserts the equivalent of "value
not in [minimum
, maximum
]", using arithmetic notation. The method is generic to avoid boxing the parameters, if they are value types.
Applies to
IsNotBetweenOrEqualTo(Byte, Byte, Byte, String)
Asserts that the input value must not be in a given interval.
public static void IsNotBetweenOrEqualTo (byte value, byte minimum, byte maximum, string name);
static member IsNotBetweenOrEqualTo : byte * byte * byte * string -> unit
Public Shared Sub IsNotBetweenOrEqualTo (value As Byte, minimum As Byte, maximum As Byte, name As String)
Parameters
- name
- String
The name of the input parameter being tested.
Exceptions
Thrown if value
is >= minimum
or <= maximum
.
Remarks
This API asserts the equivalent of "value
not in [minimum
, maximum
]", using arithmetic notation. The method is generic to avoid boxing the parameters, if they are value types.
Applies to
IsNotBetweenOrEqualTo(Int64, Int64, Int64, String)
Asserts that the input value must not be in a given interval.
public static void IsNotBetweenOrEqualTo (long value, long minimum, long maximum, string name);
static member IsNotBetweenOrEqualTo : int64 * int64 * int64 * string -> unit
Public Shared Sub IsNotBetweenOrEqualTo (value As Long, minimum As Long, maximum As Long, name As String)
Parameters
- name
- String
The name of the input parameter being tested.
Exceptions
Thrown if value
is >= minimum
or <= maximum
.
Remarks
This API asserts the equivalent of "value
not in [minimum
, maximum
]", using arithmetic notation. The method is generic to avoid boxing the parameters, if they are value types.
Applies to
IsNotBetweenOrEqualTo<T>(T, T, T, String)
Asserts that the input value must not be in a given interval.
public static void IsNotBetweenOrEqualTo<T> (T value, T minimum, T maximum, string name) where T : IComparable<T>;
static member IsNotBetweenOrEqualTo : 'T * 'T * 'T * string -> unit (requires 'T :> IComparable<'T>)
Public Shared Sub IsNotBetweenOrEqualTo(Of T As IComparable(Of T)) (value As T, minimum As T, maximum As T, name As String)
Type Parameters
- T
The type of input values to compare.
Parameters
- value
- T
The input T
value to test.
- minimum
- T
The inclusive minimum T
value that is accepted.
- maximum
- T
The inclusive maximum T
value that is accepted.
- name
- String
The name of the input parameter being tested.
Exceptions
Thrown if value
is >= minimum
or <= maximum
.
Remarks
This API asserts the equivalent of "value
not in [minimum
, maximum
]", using arithmetic notation. The method is generic to avoid boxing the parameters, if they are value types.