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