Windows apps
Collapse the table of content
Expand the table of content
Information
The topic you requested is included in another documentation set. For convenience, it's displayed below. Choose Switch to see the topic in its original location.

IAdviseSink::OnClose Method ()

 

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.

Namespace:   System.Runtime.InteropServices.ComTypes
Assembly:  System (in System.dll)

void OnClose()

An OnClose notification indicates that an object is making the transition from the running state to the loaded state, so its container can take appropriate measures to ensure orderly shutdown. For example, an object handler must release its pointer to the object.

For more information about IAdviseSink::OnClose, see the MSDN Library.

Universal Windows Platform
Available since 8
.NET Framework
Available since 2.0
Portable Class Library
Supported in: portable .NET platforms
Windows Phone
Available since 8.1
Return to top
Show:
© 2017 Microsoft