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