_Type.Equals Method

Definition

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

Overloads

Equals(Object)

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

Equals(Type)

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

Remarks

這個方法是用來從非受控程式碼存取 managed 類別,而且不應該從 managed 程式碼呼叫。This method is for access to managed classes from unmanaged code, and should not be called from managed code.

Type.Equals 方法會判斷目前 Type 的基礎系統類型,是否與指定之 ObjectType的基礎系統類型相同。The 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)

為 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

Parameters

other
Object

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

Returns

Boolean

如果 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.

Remarks

這個方法是用來從非受控程式碼存取 managed 類別,而且不應該從 managed 程式碼呼叫。This method is for access to managed classes from unmanaged code, and should not be called from managed code.

Type.Equals 方法會判斷目前 Type 的基礎系統類型是否與指定之 Object的基礎系統類型相同。The 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)

為 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

Parameters

o
Type

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

Returns

Boolean

如果 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.

Remarks

這個方法是用來從非受控程式碼存取 managed 類別,而且不應該從 managed 程式碼呼叫。This method is for access to managed classes from unmanaged code, and should not be called from managed code.

Type.Equals 方法會判斷目前 Type 的基礎系統類型是否與指定之 Type的基礎系統類型相同。The 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.

Applies to