dispinterface

将一个接口作为调度接口置于 .idl 文件中。

语法

[dispinterface]

备注

dispinterface C++ 属性优先于接口时,会导致将接口置于生成的 .idl 文件中的 library 块中。

除非指定基类,否则调度接口派生自 IDispatch。 必须为调度接口的成员指定 id

MIDL 文档中的 dispinterface 用法示例:

dispinterface helloPro
   { interface hello; };

对于 dispinterface 属性无效。

示例

有关如何使用 dispinterface 的示例,请参阅 bindable示例。

要求

特性上下文
适用于 interface
可重复
必需的特性
无效的特性 dual, object, oleautomation, local, ms_union

有关详细信息,请参见 特性上下文

另请参阅

IDL 特性
按用法分的特性
uuid
dual
custom
对象
__interface