_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.

備註

這個方法會從 unmanaged 程式碼,是用於存取 managed 類別,並不會呼叫從 managed 程式碼。This method is for access to managed classes from unmanaged code, and should not be called from managed code.

Type.GetType方法會取得目前TypeThe Type.GetType method gets the current Type.

適用於