确保的运行时类从 Windows 运行时 接口,如果存在,然后经典 COM 接口派生。
template<
typename Derived,
typename MixInType,
bool hasImplements = __is_base_of(Details::ImplementsBase,
MixInType)
>
struct MixIn;
参数
Derived
从 实现 结构派生类型。MixInType
一种基类型。hasImplements
如果MixInType派生类型从基类型派生,为 true,否则为 false。
备注
如果该类从 Windows 运行时 和 COM 接口派生类,类声明列表必须首先列出所有 Windows 运行时 接口然后任何经典 COM 接口。 接口 MixIn 确保按正确的顺序指定。
继承层次结构
MixIn
要求
**头文件:**implements.h
命名空间: Microsoft::WRL