共用方式為


MixIn 結構

確保執行階段類別衍生自 Windows 執行階段介面 (若有的話),然後才是傳統 COM 介面。

語法

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

參數

派生
衍生自 Implements 結構的型別

MixInType
基底類型。

hasImplements
true 如果 MixInType 衍生自目前的實作基底類型,則為 , false 否則為 。

備註

如果類別衍生自 Windows 執行階段 和類別 COM 介面,類別宣告清單必須先列出任何Windows 執行階段介面,然後列出任何傳統 COM 介面。 MixIn 可確保介面以正確的順序指定。

繼承階層架構

MixIn

需求

標頭: implements.h

命名空間: Microsoft::WRL

另請參閱

Microsoft::WRL 命名空間