語言

GCHandle.Equals 方法

定義

多載

名稱 Description
Equals(Object)

判斷指定的 GCHandle 物件是否等於當前 GCHandle 物件。

Equals(GCHandle)

指出目前的實例是否等於相同類型的另一個實例。

Equals(Object)

來源:
GCHandle.cs
來源:
GCHandle.cs
來源:
GCHandle.cs
來源:
GCHandle.cs
來源:
GCHandle.cs

判斷指定的 GCHandle 物件是否等於當前 GCHandle 物件。

public:
 override bool Equals(System::Object ^ o);
public override bool Equals(object o);
public override readonly bool Equals(object? o);
public override bool Equals(object? o);
override this.Equals : obj -> bool
Public Overrides Function Equals (o As Object) As Boolean

參數

o
Object

要 GCHandle 與當前 GCHandle 物件比較的物件。

傳回

true 若指定的 GCHandle 物件等於當前 GCHandle 物件;否則, false。

備註

如果兩個 GCHandle 物件指向相同的記憶體句柄,則兩者相等。

適用於

Equals(GCHandle)

來源:
GCHandle.cs
來源:
GCHandle.cs
來源:
GCHandle.cs
來源:
GCHandle.cs
來源:
GCHandle.cs

指出目前的實例是否等於相同類型的另一個實例。

public:
 virtual bool Equals(System::Runtime::InteropServices::GCHandle other);
public readonly bool Equals(System.Runtime.InteropServices.GCHandle other);
public bool Equals(System.Runtime.InteropServices.GCHandle other);
override this.Equals : System.Runtime.InteropServices.GCHandle -> bool
Public Function Equals (other As GCHandle) As Boolean

參數

other
GCHandle

這是一個可以與此例比較的例子。

傳回

true如果當前實例等於另一個實例;否則,。 false

實作

適用於