語言

GCHandle.Equality(GCHandle, GCHandle) 運算子

定義

回傳一個值,表示兩個 GCHandle 物件是否相等。

public:
 static bool operator ==(System::Runtime::InteropServices::GCHandle a, System::Runtime::InteropServices::GCHandle b);
public static bool operator ==(System.Runtime.InteropServices.GCHandle a, System.Runtime.InteropServices.GCHandle b);
static member ( = ) : System.Runtime.InteropServices.GCHandle * System.Runtime.InteropServices.GCHandle -> bool
Public Shared Operator == (a As GCHandle, b As GCHandle) As Boolean

參數

a
GCHandle

一個 GCHandle 用來與參數比較 b 的物件。

b
GCHandle

一個 GCHandle 用來與參數比較 a 的物件。

傳回

true 若 a 和 b 參數相等;否則, false。

備註

此運算子 GCHandle.Equals的等價方法是 。

適用於