다음을 통해 공유


IRowsetNotifyCP 클래스

Implements the provider site for the connection point interface IRowsetNotify.

template <
   class T, 
   class ReentrantEventSync = CComSharedMutex 
>
class IRowsetNotifyCP : 
   public IConnectionPointImpl<
      T, 
      piid = &__uuidof(IRowsetNotify), 
      CComDynamicUnkArray DynamicUnkArray
   >,
   public ReentrantEventSync

매개 변수

  • T
    A class derived from IRowsetNotifyCP.

  • ReentrantEventSync
    A mutex class that supports reentrancy (the default is CComSharedMutex). A mutex is a synchronization object that allows one thread mutually exclusive access to a resource.

  • piid
    A interface ID pointer (IID*) for an IRowsetNotify connection point interface. The default value is &__uuidof(IRowsetNotify).

  • DynamicUnkArray
    An array of type CComDynamicUnkArray, which is a dynamically allocated array of IUnknown pointers to the client sink interfaces.

멤버

메서드

Fire_OnFieldChange

Notifies the consumer of a change to the value of a column.

Fire_OnRowChange

Notifies the consumer of a change affecting the rows.

Fire_OnRowsetChange

Notifies the consumer of a change affecting the entire rowset.

설명

IRowsetNotifyCP는 연결 지점 IID_IRowsetNotify의 수신자에게 행 집합의 내용에 발생한 변경 내용을 알리기 위한 브로드캐스트 기능을 구현합니다.

Note that you must also implement and register IRowsetNotify on the consumer (also known as the "sink") using IRowsetNotifyImpl so that the consumer can handle notifications. See Receiving Notifications about implementing the connection point interface on the consumer.

For detailed information on implementing notifications, see "Supporting Notifications" in Creating an Updatable Provider.

요구 사항

Header: atldb.h

참고 항목

참조

Notifications (COM)

Overview of Notifications (OLE DB)

BEGIN_CONNECTION_POINT_MAP

END_CONNECTION_POINT_MAP

CONNECTION_POINT_ENTRY

개념

OLE DB 공급자 템플릿(C++)

OLE DB 공급자 템플릿 구조

업데이트 가능 공급자 만들기