IntPtr.Inequality(IntPtr, IntPtr) Operator

Definition

确定指定的两个 IntPtr 实例是否不相等。Determines whether two specified instances of IntPtr are not equal.

public:
 static bool operator !=(IntPtr value1, IntPtr value2);
public static bool operator != (IntPtr value1, IntPtr value2);
static member op_Inequality : nativeint * nativeint -> bool
Public Shared Operator != (value1 As IntPtr, value2 As IntPtr) As Boolean

Parameters

value1
IntPtr

要比较的第一个指针或句柄。The first pointer or handle to compare.

value2
IntPtr

要比较的第二个指针或句柄。The second pointer or handle to compare.

Returns

Boolean

如果 value1 不等于 value2,则为 true否则为 falsetrue if value1 does not equal value2; otherwise, false.

Remarks

此运算符的等效方法是 IntPtr.Equals(Object)The equivalent method for this operator is IntPtr.Equals(Object)

Applies to