_Type.IsInterface Property

Definition

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

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

Property Value

Boolean

如果 true 是介面,則為 Type,否則為 falsetrue if the Type is an interface; otherwise, false.

Remarks

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

Type.IsInterface 屬性會取得一個值,指出 Type 是否為介面;也就是說,不是類別或實值型別。The Type.IsInterface property gets a value indicating whether the Type is an interface; that is, not a class or a value type.

Applies to