共用方式為


IPropertyNotifySinkCP Class

這個類別會公開 (Expose) IPropertyNotifySink 介面做為可連接物件的輸出介面。

重要

這個類別和其成員不能用於 Windows 執行階段執行的應用程式。

template< class T, classCDV = CComDynamicUnkArray > 
class IPropertyNotifySinkCP :  
public IConnectionPointImpl< T, &IID_IPropertyNotifySink, CDV>

參數

  • T
    您的類別,衍生自 IPropertyNotifySinkCP

  • CDV
    處理連接點和其接收之間的連接的類別。 預設值為 CComDynamicUnkArray,允許無限制的連接。 您也可以使用 CComUnkArray,指定連接的固定項目數。

備註

IPropertyNotifySinkCP 傳遞給它的基底類別, IConnectionPointImpl繼承任何方法。

IPropertyNotifySink 介面允許接收物件接收有關屬性變更的通知。 類別 IPropertyNotifySinkCP 公開此介面做為可連接物件的輸出介面。 用戶端必須執行所接收到 IPropertyNotifySink 方法。

IPropertyNotifySinkCP 衍生您的類別時,您要建立一 IPropertyNotifySink 介面的連接點 (Connection Point) 時。

如需使用連接點的詳細資訊,請參閱 ATL 中本文 連接點

需求

Header: atlctl.h

請參閱

參考

IConnectionPointImpl Class

IConnectionPointContainerImpl Class

其他資源

ATL Class Overview