Método IVsObjectManager.RegisterLibMgr (Guid, IVsLibraryMgr, UInt32)

 

Registra uma biblioteca com o Gerenciador de objetos do ambiente.

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

Sintaxe

int RegisterLibMgr(
    [InAttribute] ref Guid rguidLibMgr,
    IVsLibraryMgr pLibMgr,
    out uint pdwCookie
)
int RegisterLibMgr(
    [InAttribute] Guid% rguidLibMgr,
    IVsLibraryMgr^ pLibMgr,
    [OutAttribute] unsigned int% pdwCookie
)
abstract RegisterLibMgr : 
        rguidLibMgr:Guid byref *
        pLibMgr:IVsLibraryMgr *
        pdwCookie:uint32 byref -> int
Function RegisterLibMgr (
    <InAttribute> ByRef rguidLibMgr As Guid,
    pLibMgr As IVsLibraryMgr,
    <OutAttribute> ByRef pdwCookie As UInteger
) As Integer

Parâmetros

  • rguidLibMgr
    [in] GUID de um Gerenciador de biblioteca.
  • pLibMgr
    [in] Ponteiro para um Gerenciador de bibliotecas.
  • pdwCookie
    [out] Identificando o Gerenciador de bibliotecas recém-registrados o identificador abstrato.

Valor de retorno

Type: System.Int32

Se o método for bem-sucedido, ele retorna S_OK.Se ele falhar, ele retorna um código de erro.

Comentários

COM assinatura

De vsshell.idl:

HRESULT IVsObjectManager::RegisterLibMgr(
   [in] REFGUID rguidLibMgr,
   [in] IVsLibraryMgr* pLibMgr,
   [out] VSCOOKIE* pdwCookie
);

Registrar o Gerenciador de bibliotecas do seu pacote durante a SetSite.

Consulte também

Interface IVsObjectManager
Namespace Microsoft.VisualStudio.Shell.Interop

Retornar ao topo