IVsObjectManager::UnregisterLibMgr Method (UInt32)

 

Unregisters a library manager with the environment's object manager.

Namespace:   Microsoft.VisualStudio.Shell.Interop
Assembly:  Microsoft.VisualStudio.Shell.Interop (in Microsoft.VisualStudio.Shell.Interop.dll)

int UnregisterLibMgr(
	unsigned int dwCookie
)

Parameters

dwCookie
Type: System::UInt32

[in] Abstract handle used to un-register the library manager

Return Value

Type: System::Int32

If the method succeeds, it returns S_OK. If it fails, it returns an error code.

From vsshell.idl:

HRESULT IVsObjectManager::UnregisterLibMgr(
   [in] VSCOOKIE dwCookie
);

Unregister your library manager during Close, passing the dwCookie parameter that was returned to you during the RegisterLibMgr call. It is your package's responsibility to un-register its library manager. Do not rely on the environment to perform cleanup.

Return to top
Show: