IVsObjectManager2.RegisterSimpleLibrary Method

Registers a managed code symbol library with the Visual Studio object manager.

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

Syntax

'Declaration
Function RegisterSimpleLibrary ( _
    pLib As IVsSimpleLibrary2, _
    <OutAttribute> ByRef pdwCookie As UInteger _
) As Integer
int RegisterSimpleLibrary(
    IVsSimpleLibrary2 pLib,
    out uint pdwCookie
)
int RegisterSimpleLibrary(
    [InAttribute] IVsSimpleLibrary2^ pLib, 
    [OutAttribute] unsigned int% pdwCookie
)
abstract RegisterSimpleLibrary : 
        pLib:IVsSimpleLibrary2 * 
        pdwCookie:uint32 byref -> int 
function RegisterSimpleLibrary(
    pLib : IVsSimpleLibrary2, 
    pdwCookie : uint
) : int

Parameters

  • pdwCookie
    Type: System.UInt32%
    [out]The cookie that identifies the registered library.

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 vsshell80.idl:

HRESULT RegisterSimpleLibrary(
[in] IVsSimpleLibrary2 * pLib, 
[out] VSCOOKIE* pdwCookie
);

.NET Framework Security

See Also

Reference

IVsObjectManager2 Interface

Microsoft.VisualStudio.Shell.Interop Namespace