_Type.Equals _Type.Equals _Type.Equals _Type.Equals Method

定義

為 COM 物件提供與版本無關的 Equals 方法之存取權。Provides COM objects with version-independent access to the Equals method.

多載

Equals(Object) Equals(Object) Equals(Object) Equals(Object)

為 COM 物件提供與版本無關的 Equals(Object) 方法之存取權。Provides COM objects with version-independent access to the Equals(Object) method.

Equals(Type) Equals(Type) Equals(Type) Equals(Type)

為 COM 物件提供與版本無關的 Equals(Type) 方法之存取權。Provides COM objects with version-independent access to the Equals(Type) method.

備註

這個方法會從 unmanaged 程式碼,是用於存取 managed 類別,並不會呼叫從 managed 程式碼。This method is for access to managed classes from unmanaged code, and should not be called from managed code.

Type.Equals方法會判斷目前的基礎系統類型,是否Type所指定的基礎系統類型相同ObjectTypeThe Type.Equals method determines if the underlying system type of the current Type is the same as the underlying system type of the specified Object or Type.

.

Equals(Object) Equals(Object) Equals(Object) Equals(Object)

為 COM 物件提供與版本無關的 Equals(Object) 方法之存取權。Provides COM objects with version-independent access to the Equals(Object) method.

public:
 bool Equals(System::Object ^ other);
public bool Equals (object other);
abstract member Equals : obj -> bool
Public Function Equals (other As Object) As Boolean

參數

other
Object Object Object Object

Object,其基礎系統類型將與目前 Type 的基礎系統類型進行比較。The Object whose underlying system type is to be compared with the underlying system type of the current Type.

傳回

如果 true 的基礎系統類型與目前 o 的基礎系統類型相同,則為 Type否則為 falsetrue if the underlying system type of o is the same as the underlying system type of the current Type; otherwise, false.

備註

這個方法會從 unmanaged 程式碼,是用於存取 managed 類別,並不會呼叫從 managed 程式碼。This method is for access to managed classes from unmanaged code, and should not be called from managed code.

Type.Equals方法會判斷目前的基礎系統類型,是否Type等同於指定的基礎系統類型ObjectThe Type.Equals method determines if the underlying system type of the current Type is the same as the underlying system type of the specified Object.

Equals(Type) Equals(Type) Equals(Type) Equals(Type)

為 COM 物件提供與版本無關的 Equals(Type) 方法之存取權。Provides COM objects with version-independent access to the Equals(Type) method.

public:
 bool Equals(Type ^ o);
public bool Equals (Type o);
abstract member Equals : Type -> bool
Public Function Equals (o As Type) As Boolean

參數

o
Type Type Type Type

Type,其基礎系統類型將與目前 Type 的基礎系統類型進行比較。The Type whose underlying system type is to be compared with the underlying system type of the current Type.

傳回

如果 true 的基礎系統類型與目前 o 的基礎系統類型相同,則為 Type否則為 falsetrue if the underlying system type of o is the same as the underlying system type of the current Type; otherwise, false.

備註

這個方法會從 unmanaged 程式碼,是用於存取 managed 類別,並不會呼叫從 managed 程式碼。This method is for access to managed classes from unmanaged code, and should not be called from managed code.

Type.Equals方法會判斷目前的基礎系統類型,是否Type等同於指定的基礎系統類型TypeThe Type.Equals method determines if the underlying system type of the current Type is the same as the underlying system type of the specified Type.

適用於