Early Preview
This is currently very much a preview. Please feel free to try things out,
but don't be upset if anything is not yet working. Feedback is welcome over on our
GitHub Dicussions page.
struct System.​Runtime.​InteropServices.​ComTypes.​IAdviseSink
Assembly: System.Runtime.InteropServices
Provides a managed definition of the <see langword="IAdviseSink" /> interface.
Methods
public
void
OnClose​()
Notifies all registered advisory sinks that the object has changed from the running state to the loaded state. This method is called by a server.
public
void
OnRename​(IMoniker moniker)
moniker
A pointer to the <see langword="IMoniker" /> interface on the new full moniker of the object.
Notifies all registered advisory sinks that the object has been renamed. This method is called by a server.
public
void
OnSave​()
Notifies all registered advisory sinks that the object has been saved. This method is called by a server.
public
void
OnViewChange​(int aspect,
int index)
aspect
The aspect, or view, of the object. Contains a value taken from the <see cref="T:System.Runtime.InteropServices.ComTypes.DVASPECT" /> enumeration.
index
The portion of the view that has changed. Currently, only -1 is valid.
Notifies an object's registered advisory sinks that its view has changed. This method is called by a server.