This documentation is archived and is not being maintained.

IAdviseSink.OnClose Method

Note: This method is new in the .NET Framework version 2.0.

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 ()
void OnClose ()
function 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.

Windows 98, Windows 2000 SP4, Windows Millennium Edition, Windows Server 2003, Windows XP Media Center Edition, Windows XP Professional x64 Edition, Windows XP SP2, Windows XP Starter Edition

The .NET Framework does not support all versions of every platform. For a list of the supported versions, see System Requirements.

.NET Framework

Supported in: 2.0