Guard.IsGreaterThan 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
IsGreaterThan(Byte, Byte, String) |
Asserts that the input value must be greater than a specified value. |
IsGreaterThan(UIntPtr, UIntPtr, String) |
Asserts that the input value must be greater than a specified value. |
IsGreaterThan(UInt64, UInt64, String) |
Asserts that the input value must be greater than a specified value. |
IsGreaterThan(UInt32, UInt32, String) |
Asserts that the input value must be greater than a specified value. |
IsGreaterThan(Single, Single, String) |
Asserts that the input value must be greater than a specified value. |
IsGreaterThan(SByte, SByte, String) |
Asserts that the input value must be greater than a specified value. |
IsGreaterThan(IntPtr, IntPtr, String) |
Asserts that the input value must be greater than a specified value. |
IsGreaterThan(UInt16, UInt16, String) |
Asserts that the input value must be greater than a specified value. |
IsGreaterThan(Int32, Int32, String) |
Asserts that the input value must be greater than a specified value. |
IsGreaterThan(Int16, Int16, String) |
Asserts that the input value must be greater than a specified value. |
IsGreaterThan(Double, Double, String) |
Asserts that the input value must be greater than a specified value. |
IsGreaterThan(Decimal, Decimal, String) |
Asserts that the input value must be greater than a specified value. |
IsGreaterThan(Char, Char, String) |
Asserts that the input value must be greater than a specified value. |
IsGreaterThan(Int64, Int64, String) |
Asserts that the input value must be greater than a specified value. |
IsGreaterThan<T>(T, T, String) |
Asserts that the input value must be greater than a specified value. |
IsGreaterThan(Byte, Byte, String)
Asserts that the input value must be greater than a specified value.
public static void IsGreaterThan (byte value, byte minimum, string name);
static member IsGreaterThan : byte * byte * string -> unit
Public Shared Sub IsGreaterThan (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
IsGreaterThan(UIntPtr, UIntPtr, String)
Asserts that the input value must be greater than a specified value.
public static void IsGreaterThan (nuint value, nuint minimum, string name);
static member IsGreaterThan : unativeint * unativeint * string -> unit
Public Shared Sub IsGreaterThan (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 exclusive 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
IsGreaterThan(UInt64, UInt64, String)
Asserts that the input value must be greater than a specified value.
public static void IsGreaterThan (ulong value, ulong minimum, string name);
static member IsGreaterThan : uint64 * uint64 * string -> unit
Public Shared Sub IsGreaterThan (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
IsGreaterThan(UInt32, UInt32, String)
Asserts that the input value must be greater than a specified value.
public static void IsGreaterThan (uint value, uint minimum, string name);
static member IsGreaterThan : uint32 * uint32 * string -> unit
Public Shared Sub IsGreaterThan (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
IsGreaterThan(Single, Single, String)
Asserts that the input value must be greater than a specified value.
public static void IsGreaterThan (float value, float minimum, string name);
static member IsGreaterThan : single * single * string -> unit
Public Shared Sub IsGreaterThan (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
IsGreaterThan(SByte, SByte, String)
Asserts that the input value must be greater than a specified value.
public static void IsGreaterThan (sbyte value, sbyte minimum, string name);
static member IsGreaterThan : sbyte * sbyte * string -> unit
Public Shared Sub IsGreaterThan (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
IsGreaterThan(IntPtr, IntPtr, String)
Asserts that the input value must be greater than a specified value.
public static void IsGreaterThan (nint value, nint minimum, string name);
static member IsGreaterThan : nativeint * nativeint * string -> unit
Public Shared Sub IsGreaterThan (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 exclusive 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
IsGreaterThan(UInt16, UInt16, String)
Asserts that the input value must be greater than a specified value.
public static void IsGreaterThan (ushort value, ushort minimum, string name);
static member IsGreaterThan : uint16 * uint16 * string -> unit
Public Shared Sub IsGreaterThan (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
IsGreaterThan(Int32, Int32, String)
Asserts that the input value must be greater than a specified value.
public static void IsGreaterThan (int value, int minimum, string name);
static member IsGreaterThan : int * int * string -> unit
Public Shared Sub IsGreaterThan (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
IsGreaterThan(Int16, Int16, String)
Asserts that the input value must be greater than a specified value.
public static void IsGreaterThan (short value, short minimum, string name);
static member IsGreaterThan : int16 * int16 * string -> unit
Public Shared Sub IsGreaterThan (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
IsGreaterThan(Double, Double, String)
Asserts that the input value must be greater than a specified value.
public static void IsGreaterThan (double value, double minimum, string name);
static member IsGreaterThan : double * double * string -> unit
Public Shared Sub IsGreaterThan (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
IsGreaterThan(Decimal, Decimal, String)
Asserts that the input value must be greater than a specified value.
public static void IsGreaterThan (decimal value, decimal minimum, string name);
static member IsGreaterThan : decimal * decimal * string -> unit
Public Shared Sub IsGreaterThan (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
IsGreaterThan(Char, Char, String)
Asserts that the input value must be greater than a specified value.
public static void IsGreaterThan (char value, char minimum, string name);
static member IsGreaterThan : char * char * string -> unit
Public Shared Sub IsGreaterThan (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
IsGreaterThan(Int64, Int64, String)
Asserts that the input value must be greater than a specified value.
public static void IsGreaterThan (long value, long minimum, string name);
static member IsGreaterThan : int64 * int64 * string -> unit
Public Shared Sub IsGreaterThan (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
IsGreaterThan<T>(T, T, String)
Asserts that the input value must be greater than a specified value.
public static void IsGreaterThan<T> (T value, T minimum, string name) where T : IComparable<T>;
static member IsGreaterThan : 'T * 'T * string -> unit (requires 'T :> IComparable<'T>)
Public Shared Sub IsGreaterThan(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 exclusive 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.