IVsObjectManager2.RegisterLibrary Method
Registers a 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
'Declaración
Function RegisterLibrary ( _
pLib As IVsLibrary2, _
<OutAttribute> ByRef pdwCookie As UInteger _
) As Integer
'Uso
Dim instance As IVsObjectManager2
Dim pLib As IVsLibrary2
Dim pdwCookie As UInteger
Dim returnValue As Integer
returnValue = instance.RegisterLibrary(pLib, _
pdwCookie)
int RegisterLibrary(
IVsLibrary2 pLib,
out uint pdwCookie
)
int RegisterLibrary(
[InAttribute] IVsLibrary2^ pLib,
[OutAttribute] unsigned int% pdwCookie
)
abstract RegisterLibrary :
pLib:IVsLibrary2 *
pdwCookie:uint32 byref -> int
function RegisterLibrary(
pLib : IVsLibrary2,
pdwCookie : uint
) : int
Parameters
- pLib
Type: Microsoft.VisualStudio.Shell.Interop.IVsLibrary2
[in] The IVsLibrary2 that represents a library registered with the object manager.
- 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
CCOM Signature
From vsshell80.idl:
HRESULT IVsObjectManager2::RegisterLibrary(
[in] IVsLibrary2 * pLib,
[out] VSCOOKIE* pdwCookie
);
.NET Framework Security
- Full trust for the immediate caller. This member cannot be used by partially trusted code. For more information, see Using Libraries from Partially Trusted Code.