Partager via


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

'Déclaration
Function UnregisterLibMgr ( _
    dwCookie As UInteger _
) As Integer
'Utilisation
Dim instance As IVsObjectManager
Dim dwCookie As UInteger
Dim returnValue As Integer

returnValue = instance.UnregisterLibMgr(dwCookie)
int UnregisterLibMgr(
    uint dwCookie
)
int UnregisterLibMgr(
    [InAttribute] unsigned int dwCookie
)
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.

Permissions

See Also

Reference

IVsObjectManager Interface

IVsObjectManager Members

Microsoft.VisualStudio.Shell.Interop Namespace