IOleAdviseHolder::SendOnRename

This method sends IAdviseSink::OnRename notifications to all advisory sinks currently registered with the advise holder.

At a Glance

Header file: Oleidl.h
Windows CE versions: 2.0 and later

Syntax

HRESULT SendOnRename( IMoniker * pmk, );

Parameters

pmk

[in] Pointer to the new full moniker of the object.

Return Value

S_OK indicatesthat advise sinks were sent IAdviseSink::OnRename notifications.

Remarks

IOleAdviseHolder::SendOnRename calls IAdviseSink::OnRename to advise the calling object, which must have already established an advisory connection, that the object has a new moniker. If you are using the OLE advise holder (having obtained a pointer through a call to CreateOleAdviseHolder), you can call IOleAdviseHolder::SendOnRename in the implementation of IOleObject::SetMoniker, when you have determined that the operation is successful.