_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

注解

此属性用于从非托管代码访问托管类,不应从托管代码调用。

属性 Type.IsInterface 获取一个值,该值指示 是否 Type 是接口;即,不是类或值类型。

适用于