IVsLibraryMgr.GetCount Method
Returns the number of libraries implemented by the library manager.
Namespace: Microsoft.VisualStudio.Shell.Interop
Assembly: Microsoft.VisualStudio.Shell.Interop (in Microsoft.VisualStudio.Shell.Interop.dll)
Syntax
'Declaration
Function GetCount ( _
<OutAttribute> ByRef pnCount As UInteger _
) As Integer
int GetCount(
out uint pnCount
)
int GetCount(
[OutAttribute] unsigned int% pnCount
)
abstract GetCount :
pnCount:uint32 byref -> int
function GetCount(
pnCount : uint
) : int
Parameters
pnCount
Type: UInt32%[out] Pointer to the count of libraries managed by your library manager.
Return Value
Type: Int32
If the method succeeds, it returns S_OK. If it fails, it returns an error code.
Remarks
COM Signature
From vsshell.idl:
HRESULT IVsLibraryMgr::GetCount(
[out, retval] ULONG *pnCount
);
Most implementations will typically provide a single IVsLibrary so the count returned will be one.
.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.