Exception.GetType Method

Definition

取得目前執行個體的執行階段類型。Gets the runtime type of the current instance.

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

Returns

Type

Type 物件,代表目前執行個體的確實執行階段類型。A Type object that represents the exact runtime type of the current instance.

Implements

Remarks

GetType 方法的存在是為了支援 .NET Framework 基礎結構,並會在內部叫用基本方法 Object.GetTypeThe GetType method exists to support the .NET Framework infrastructure, and internally invokes the fundamental method, Object.GetType.

Applies to

See also