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
另請參閱
IConnectionPointImpl 類別
IConnectionPointContainerImpl 類別
類別概觀