_Type.GetType _Type.GetType _Type.GetType _Type.GetType Method

定義

為 COM 物件提供與版本無關的 GetType() 方法之存取權。Provides COM objects with version-independent access to the GetType() method.

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

傳回

目前的 TypeThe current Type.

備註

這個方法是用來從非受控程式碼存取 managed 類別,而且不應該從 managed 程式碼呼叫。This method is for access to managed classes from unmanaged code, and should not be called from managed code.

方法會取得目前Type的。 Type.GetTypeThe Type.GetType method gets the current Type.

適用於