Share via


IVsObjectManager2.RegisterSimpleLibrary(IVsSimpleLibrary2, UInt32) Method

Definition

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

public:
 int RegisterSimpleLibrary(Microsoft::VisualStudio::Shell::Interop::IVsSimpleLibrary2 ^ pLib, [Runtime::InteropServices::Out] System::UInt32 % pdwCookie);
int RegisterSimpleLibrary(Microsoft::VisualStudio::Shell::Interop::IVsSimpleLibrary2 const & pLib, [Runtime::InteropServices::Out] unsigned int & pdwCookie);
public int RegisterSimpleLibrary (Microsoft.VisualStudio.Shell.Interop.IVsSimpleLibrary2 pLib, out uint pdwCookie);
abstract member RegisterSimpleLibrary : Microsoft.VisualStudio.Shell.Interop.IVsSimpleLibrary2 * uint32 -> int
Public Function RegisterSimpleLibrary (pLib As IVsSimpleLibrary2, ByRef pdwCookie As UInteger) As Integer

Parameters

pLib
IVsSimpleLibrary2

[in] The IVsSimpleLibrary2 that represents a managed code library.

pdwCookie
UInt32

[out]The cookie that identifies the registered library.

Returns

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  
);  

Applies to