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

適用於

另請參閱