_MethodBase.GetType 方法

定義

為 COM 物件提供與版本無關的 GetType() 方法之存取權。

public:
 Type ^ GetType();
public Type GetType ();
abstract member GetType : unit -> Type
Public Function GetType () As Type

傳回

Type 物件。

備註

此方法適用于從 Unmanaged 程式碼存取 Managed 類別,不應從 Managed 程式碼呼叫。

方法 GetType 會取得目前實例的類型。

適用於