_MethodInfo.GetType 方法

定義

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

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

傳回

Type

Type 物件。

備註

這個方法是用來從非受控碼存取 managed 類別,不應該從 managed 程式碼呼叫。

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

適用於