Guard.IsGreaterThanOrEqualTo 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
IsGreaterThanOrEqualTo(SByte, SByte, String) |
Asserts that the input value must be greater than or equal to a specified value. |
IsGreaterThanOrEqualTo(UIntPtr, UIntPtr, String) |
Asserts that the input value must be greater than or equal to a specified value. |
IsGreaterThanOrEqualTo(UInt64, UInt64, String) |
Asserts that the input value must be greater than or equal to a specified value. |
IsGreaterThanOrEqualTo(UInt32, UInt32, String) |
Asserts that the input value must be greater than or equal to a specified value. |
IsGreaterThanOrEqualTo(UInt16, UInt16, String) |
Asserts that the input value must be greater than or equal to a specified value. |
IsGreaterThanOrEqualTo(IntPtr, IntPtr, String) |
Asserts that the input value must be greater than or equal to a specified value. |
IsGreaterThanOrEqualTo(Single, Single, String) |
Asserts that the input value must be greater than or equal to a specified value. |
IsGreaterThanOrEqualTo(Int32, Int32, String) |
Asserts that the input value must be greater than or equal to a specified value. |
IsGreaterThanOrEqualTo(Byte, Byte, String) |
Asserts that the input value must be greater than or equal to a specified value. |
IsGreaterThanOrEqualTo(Char, Char, String) |
Asserts that the input value must be greater than or equal to a specified value. |
IsGreaterThanOrEqualTo(Decimal, Decimal, String) |
Asserts that the input value must be greater than or equal to a specified value. |
IsGreaterThanOrEqualTo(Int64, Int64, String) |
Asserts that the input value must be greater than or equal to a specified value. |
IsGreaterThanOrEqualTo(Double, Double, String) |
Asserts that the input value must be greater than or equal to a specified value. |
IsGreaterThanOrEqualTo(Int16, Int16, String) |
Asserts that the input value must be greater than or equal to a specified value. |
IsGreaterThanOrEqualTo<T>(T, T, String) |
Asserts that the input value must be greater than or equal to a specified value. |
IsGreaterThanOrEqualTo(SByte, SByte, String)
Asserts that the input value must be greater than or equal to a specified value.
public static void IsGreaterThanOrEqualTo (sbyte value, sbyte minimum, string name);
static member IsGreaterThanOrEqualTo : sbyte * sbyte * string -> unit
Public Shared Sub IsGreaterThanOrEqualTo (value As SByte, minimum As SByte, name As String)
Parameters
- name
- String
The name of the input parameter being tested.
Exceptions
Thrown if value
is < minimum
.
Remarks
The method is generic to avoid boxing the parameters, if they are value types.
Applies to
IsGreaterThanOrEqualTo(UIntPtr, UIntPtr, String)
Asserts that the input value must be greater than or equal to a specified value.
public static void IsGreaterThanOrEqualTo (nuint value, nuint minimum, string name);
static member IsGreaterThanOrEqualTo : unativeint * unativeint * string -> unit
Public Shared Sub IsGreaterThanOrEqualTo (value As UIntPtr, minimum 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.
- name
- String
The name of the input parameter being tested.
Exceptions
Thrown if value
is < minimum
.
Remarks
The method is generic to avoid boxing the parameters, if they are value types.
Applies to
IsGreaterThanOrEqualTo(UInt64, UInt64, String)
Asserts that the input value must be greater than or equal to a specified value.
public static void IsGreaterThanOrEqualTo (ulong value, ulong minimum, string name);
static member IsGreaterThanOrEqualTo : uint64 * uint64 * string -> unit
Public Shared Sub IsGreaterThanOrEqualTo (value As ULong, minimum As ULong, name As String)
Parameters
- name
- String
The name of the input parameter being tested.
Exceptions
Thrown if value
is < minimum
.
Remarks
The method is generic to avoid boxing the parameters, if they are value types.
Applies to
IsGreaterThanOrEqualTo(UInt32, UInt32, String)
Asserts that the input value must be greater than or equal to a specified value.
public static void IsGreaterThanOrEqualTo (uint value, uint minimum, string name);
static member IsGreaterThanOrEqualTo : uint32 * uint32 * string -> unit
Public Shared Sub IsGreaterThanOrEqualTo (value As UInteger, minimum As UInteger, name As String)
Parameters
- name
- String
The name of the input parameter being tested.
Exceptions
Thrown if value
is < minimum
.
Remarks
The method is generic to avoid boxing the parameters, if they are value types.
Applies to
IsGreaterThanOrEqualTo(UInt16, UInt16, String)
Asserts that the input value must be greater than or equal to a specified value.
public static void IsGreaterThanOrEqualTo (ushort value, ushort minimum, string name);
static member IsGreaterThanOrEqualTo : uint16 * uint16 * string -> unit
Public Shared Sub IsGreaterThanOrEqualTo (value As UShort, minimum As UShort, name As String)
Parameters
- name
- String
The name of the input parameter being tested.
Exceptions
Thrown if value
is < minimum
.
Remarks
The method is generic to avoid boxing the parameters, if they are value types.
Applies to
IsGreaterThanOrEqualTo(IntPtr, IntPtr, String)
Asserts that the input value must be greater than or equal to a specified value.
public static void IsGreaterThanOrEqualTo (nint value, nint minimum, string name);
static member IsGreaterThanOrEqualTo : nativeint * nativeint * string -> unit
Public Shared Sub IsGreaterThanOrEqualTo (value As IntPtr, minimum 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.
- name
- String
The name of the input parameter being tested.
Exceptions
Thrown if value
is < minimum
.
Remarks
The method is generic to avoid boxing the parameters, if they are value types.
Applies to
IsGreaterThanOrEqualTo(Single, Single, String)
Asserts that the input value must be greater than or equal to a specified value.
public static void IsGreaterThanOrEqualTo (float value, float minimum, string name);
static member IsGreaterThanOrEqualTo : single * single * string -> unit
Public Shared Sub IsGreaterThanOrEqualTo (value As Single, minimum As Single, name As String)
Parameters
- name
- String
The name of the input parameter being tested.
Exceptions
Thrown if value
is < minimum
.
Remarks
The method is generic to avoid boxing the parameters, if they are value types.
Applies to
IsGreaterThanOrEqualTo(Int32, Int32, String)
Asserts that the input value must be greater than or equal to a specified value.
public static void IsGreaterThanOrEqualTo (int value, int minimum, string name);
static member IsGreaterThanOrEqualTo : int * int * string -> unit
Public Shared Sub IsGreaterThanOrEqualTo (value As Integer, minimum As Integer, name As String)
Parameters
- name
- String
The name of the input parameter being tested.
Exceptions
Thrown if value
is < minimum
.
Remarks
The method is generic to avoid boxing the parameters, if they are value types.
Applies to
IsGreaterThanOrEqualTo(Byte, Byte, String)
Asserts that the input value must be greater than or equal to a specified value.
public static void IsGreaterThanOrEqualTo (byte value, byte minimum, string name);
static member IsGreaterThanOrEqualTo : byte * byte * string -> unit
Public Shared Sub IsGreaterThanOrEqualTo (value As Byte, minimum As Byte, name As String)
Parameters
- name
- String
The name of the input parameter being tested.
Exceptions
Thrown if value
is < minimum
.
Remarks
The method is generic to avoid boxing the parameters, if they are value types.
Applies to
IsGreaterThanOrEqualTo(Char, Char, String)
Asserts that the input value must be greater than or equal to a specified value.
public static void IsGreaterThanOrEqualTo (char value, char minimum, string name);
static member IsGreaterThanOrEqualTo : char * char * string -> unit
Public Shared Sub IsGreaterThanOrEqualTo (value As Char, minimum As Char, name As String)
Parameters
- name
- String
The name of the input parameter being tested.
Exceptions
Thrown if value
is < minimum
.
Remarks
The method is generic to avoid boxing the parameters, if they are value types.
Applies to
IsGreaterThanOrEqualTo(Decimal, Decimal, String)
Asserts that the input value must be greater than or equal to a specified value.
public static void IsGreaterThanOrEqualTo (decimal value, decimal minimum, string name);
static member IsGreaterThanOrEqualTo : decimal * decimal * string -> unit
Public Shared Sub IsGreaterThanOrEqualTo (value As Decimal, minimum As Decimal, name As String)
Parameters
- name
- String
The name of the input parameter being tested.
Exceptions
Thrown if value
is < minimum
.
Remarks
The method is generic to avoid boxing the parameters, if they are value types.
Applies to
IsGreaterThanOrEqualTo(Int64, Int64, String)
Asserts that the input value must be greater than or equal to a specified value.
public static void IsGreaterThanOrEqualTo (long value, long minimum, string name);
static member IsGreaterThanOrEqualTo : int64 * int64 * string -> unit
Public Shared Sub IsGreaterThanOrEqualTo (value As Long, minimum As Long, name As String)
Parameters
- name
- String
The name of the input parameter being tested.
Exceptions
Thrown if value
is < minimum
.
Remarks
The method is generic to avoid boxing the parameters, if they are value types.
Applies to
IsGreaterThanOrEqualTo(Double, Double, String)
Asserts that the input value must be greater than or equal to a specified value.
public static void IsGreaterThanOrEqualTo (double value, double minimum, string name);
static member IsGreaterThanOrEqualTo : double * double * string -> unit
Public Shared Sub IsGreaterThanOrEqualTo (value As Double, minimum As Double, name As String)
Parameters
- name
- String
The name of the input parameter being tested.
Exceptions
Thrown if value
is < minimum
.
Remarks
The method is generic to avoid boxing the parameters, if they are value types.
Applies to
IsGreaterThanOrEqualTo(Int16, Int16, String)
Asserts that the input value must be greater than or equal to a specified value.
public static void IsGreaterThanOrEqualTo (short value, short minimum, string name);
static member IsGreaterThanOrEqualTo : int16 * int16 * string -> unit
Public Shared Sub IsGreaterThanOrEqualTo (value As Short, minimum As Short, name As String)
Parameters
- name
- String
The name of the input parameter being tested.
Exceptions
Thrown if value
is < minimum
.
Remarks
The method is generic to avoid boxing the parameters, if they are value types.
Applies to
IsGreaterThanOrEqualTo<T>(T, T, String)
Asserts that the input value must be greater than or equal to a specified value.
public static void IsGreaterThanOrEqualTo<T> (T value, T minimum, string name) where T : IComparable<T>;
static member IsGreaterThanOrEqualTo : 'T * 'T * string -> unit (requires 'T :> IComparable<'T>)
Public Shared Sub IsGreaterThanOrEqualTo(Of T As IComparable(Of T)) (value As T, minimum 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.
- name
- String
The name of the input parameter being tested.
Exceptions
Thrown if value
is < minimum
.
Remarks
The method is generic to avoid boxing the parameters, if they are value types.