_Type.IsInterface _Type.IsInterface _Type.IsInterface _Type.IsInterface Property

定义

为 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

属性值

如果 true 是接口,则为 Type;否则为 falsetrue if the Type is an interface; otherwise, false.

注解

此属性是用于访问托管类到从非托管代码,不应从托管代码调用。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.

适用于