IPropertyNotifySinkCP 类
此类将 IPropertyNotifySink 接口公开为可连接对象的传出接口。
重要
无法在 Windows 运行时中执行的应用程序中使用此类及其成员。
语法
template<class T, class CDV = CComDynamicUnkArray>
class IPropertyNotifySinkCP
: public IConnectionPointImpl<T, &IID_IPropertyNotifySink, CDV>
参数
T
你的类,派生自 IPropertyNotifySinkCP
。
CDV
用于管理连接点与其接收器之间的连接的类。 默认值为 CComDynamicUnkArray,允许无限连接。 还可以使用 CComUnkArray,它指定固定数量的连接。
备注
IPropertyNotifySinkCP
通过基类 IConnectionPointImpl 继承所有方法。
IPropertyNotifySink 接口允许接收器对象接收有关属性更改的通知。 类 IPropertyNotifySinkCP
将此接口公开为可连接对象的传出接口。 客户端必须在接收器上实现 IPropertyNotifySink
方法。
当要创建表示 IPropertyNotifySink
接口的连接点时,从 IPropertyNotifySinkCP
派生类。
有关在 ATL 中使用连接点的详细信息,请参阅连接点一文。
要求
标头:atlctl.h
另请参阅
反馈
https://aka.ms/ContentUserFeedback。
即将发布:在整个 2024 年,我们将逐步淘汰作为内容反馈机制的“GitHub 问题”,并将其取代为新的反馈系统。 有关详细信息,请参阅:提交和查看相关反馈