_Type.GetType _Type.GetType _Type.GetType _Type.GetType Method

定义

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

public:
 Type ^ GetType();
public Type GetType ();
abstract member GetType : unit -> Type
Public Function GetType () As Type

返回

当前的 TypeThe current Type.

注解

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

Type.GetType方法获取当前TypeThe Type.GetType method gets the current Type.

适用于