_Type.BaseType 屬性


為 COM 物件提供與版本無關的 BaseType 屬性之存取權。Provides COM objects with version-independent access to the BaseType property.

 property Type ^ BaseType { Type ^ get(); };
public Type BaseType { get; }
member this.BaseType : Type
Public ReadOnly Property BaseType As Type


目前直接繼承自 TypeType;而當目前 null 代表的是 Type 類別時,則為 ObjectThe Type from which the current Type directly inherits, or null if the current Type represents the Object class.


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

Type.BaseType 屬性會取得目前 Type 直接繼承的來源型別。The Type.BaseType property gets the type from which the current Type directly inherits.