_MethodBase.GetType _MethodBase.GetType _MethodBase.GetType _MethodBase.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

返回

一个 Type 对象。A Type object.

注解

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

GetType方法获取当前实例的类型。The GetType method gets the type of the current instance.

适用于