MixIn 结构

确保运行时选件类从 Windows 运行时 接口,如果有,然后传统的COM接口派生。

template<
   typename Derived,
   typename MixInType,
   bool hasImplements = __is_base_of(Details::ImplementsBase,
   MixInType)
>
struct MixIn;

参数

  • Derived
    实现 结构派生类型。

  • MixInType
    基类型。

  • hasImplements
    true,如果 MixInType 从当前实现派生该基类型;否则 false。

备注

如果选件类从 Windows 运行时 和选件类COM接口派生,列表的说明的选件类必须先列出所有 Windows 运行时 接口然后任何传统的COM接口。MixIn确保接口按正确的顺序来指定。

继承层次结构

MixIn

要求

标头: implements.h

命名空间: Microsoft::WRL

请参见

参考

Microsoft::WRL 命名空间