Bagikan melalui


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: System.UInt32%
    [out] Pointer to the count of libraries managed by your library manager.

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

See Also

Reference

IVsLibraryMgr Interface

Microsoft.VisualStudio.Shell.Interop Namespace