UIntPtr.Equality(UIntPtr, UIntPtr) UIntPtr.Equality(UIntPtr, UIntPtr) UIntPtr.Equality(UIntPtr, UIntPtr) UIntPtr.Equality(UIntPtr, UIntPtr) Operator

定義

判斷 UIntPtr 的兩個指定執行個體是否相等。Determines whether two specified instances of UIntPtr are equal.

public:
 static bool operator ==(UIntPtr value1, UIntPtr value2);
public static bool operator == (UIntPtr value1, UIntPtr value2);
static member ( = ) : unativeint * unativeint -> bool
Public Shared Operator == (value1 As UIntPtr, value2 As UIntPtr) As Boolean

參數

value1
UIntPtr UIntPtr UIntPtr UIntPtr

要比較的第一個指標或控點。The first pointer or handle to compare.

value2
UIntPtr UIntPtr UIntPtr UIntPtr

要比較的第二個指標或控點。The second pointer or handle to compare.

傳回

如果 value1 等於 value2 則為 true,否則為 falsetrue if value1 equals value2; otherwise, false.

備註

這個運算子的對等方法是UIntPtr.Equals(Object)The equivalent method for this operator is UIntPtr.Equals(Object)

適用於