IVsObjectManager.UnregisterLibMgr Method

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)

Syntax

'Declaration
Function UnregisterLibMgr ( _
    dwCookie As UInteger _
) As Integer
int UnregisterLibMgr(
    uint dwCookie
)
int UnregisterLibMgr(
    [InAttribute] unsigned int dwCookie
)
abstract UnregisterLibMgr : 
        dwCookie:uint32 -> int 
function UnregisterLibMgr(
    dwCookie : uint
) : int

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.

Remarks

COM Signature

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.

.NET Framework Security

See Also

Reference

IVsObjectManager Interface

Microsoft.VisualStudio.Shell.Interop Namespace