共用方式為


IVsObjectManager.UnregisterLibMgr(UInt32) Method

Definition

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

public:
 int UnregisterLibMgr(System::UInt32 dwCookie);
public:
 int UnregisterLibMgr(unsigned int dwCookie);
int UnregisterLibMgr(unsigned int dwCookie);
public int UnregisterLibMgr (uint dwCookie);
abstract member UnregisterLibMgr : uint32 -> int
Public Function UnregisterLibMgr (dwCookie As UInteger) As Integer

Parameters

dwCookie
UInt32

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

Returns

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.

Applies to