Exception.GetType 方法

定义

获取当前实例的运行时类型。

public:
 Type ^ GetType();
public:
 virtual Type ^ GetType();
public Type GetType();
override this.GetType : unit -> Type
Public Function GetType () As Type

返回

一个 Type 表示当前实例的确切运行时类型的对象。

实现

注解

存在 GetType 方法以支持 .NET Framework 基础结构,并在内部调用基本方法 Object.GetType

适用于

另请参阅