_Type.GetType 方法

定义

为 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的。 Type.GetTypeThe Type.GetType method gets the current Type.

适用于