IVsObjectManager2.RegisterLibrary(IVsLibrary2, UInt32) Method

Definition

Registers a symbol library with the Visual Studio object manager.

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

Parameters

pLib
IVsLibrary2

[in] The IVsLibrary2 that represents a library registered with the object manager.

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

CCOM Signature

From vsshell80.idl:

HRESULT IVsObjectManager2::RegisterLibrary(

[in] IVsLibrary2 * pLib,

[out] VSCOOKIE* pdwCookie

);

Applies to