_Exception.GetType _Exception.GetType _Exception.GetType _Exception.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 that represents the exact runtime type of the current instance.

注解

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

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

适用于

另请参阅