共用方式為


UIntPtr.Equality(UIntPtr, UIntPtr) 運算子

定義

判斷 UIntPtr 的兩個指定執行個體是否相等。

public:
 static bool operator ==(UIntPtr value1, UIntPtr value2);
public:
 static bool operator ==(UIntPtr value1, UIntPtr value2) = System::Numerics::IEqualityOperators<UIntPtr, UIntPtr, bool>::op_Equality;
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

unativeint

要比較的第一個不帶正負號整數。

value2
UIntPtr

unativeint

要比較的第二個不帶正負號整數。

傳回

如果 value1 等於 value2 則為 true,否則為 false

實作

備註

這個運算子的對等方法為 UIntPtr.Equals(Object)

適用於