_Type.IsInterface 屬性

定義

為 COM 物件提供與版本無關的 IsInterface 屬性之存取權。

public:
 property bool IsInterface { bool get(); };
public bool IsInterface { get; }
member this.IsInterface : bool
Public ReadOnly Property IsInterface As Boolean

屬性值

如果 true 是介面,則為 Type,否則為 false

備註

此屬性適用於從 Unmanaged 程式代碼存取 Managed 類別,不應從 Managed 程式代碼呼叫。

屬性 Type.IsInterface 會取得值,指出 是否 Type 為介面,也就是類別或實值型別。

適用於