_Type.Equals 方法

定义

为 COM 对象提供对 Equals 方法的与版本无关的访问。Provides COM objects with version-independent access to the Equals method.

重载

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.

注解

此方法用于从非托管代码访问托管类,不应从托管代码调用。This method is for access to managed classes from unmanaged code, and should not be called from managed code.

Type.Equals方法确定当前的基础系统类型 Type 是否与指定或的基础系统类型相同 Object 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 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

参数

other
Object

Object,其基础系统类型将与当前 Type 的基础系统类型相比较。The Object whose underlying system type is to be compared with the underlying system type of the current Type.

返回

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.

注解

此方法用于从非托管代码访问托管类,不应从托管代码调用。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)

为 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 的基础系统类型相比较。The Type whose underlying system type is to be compared with the underlying system type of the current Type.

返回

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.

注解

此方法用于从非托管代码访问托管类,不应从托管代码调用。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.

适用于