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
‘선언
Function GetCount ( _
<OutAttribute> ByRef pnCount As UInteger _
) As Integer
‘사용 방법
Dim instance As IVsLibraryMgr
Dim pnCount As UInteger
Dim returnValue As Integer
returnValue = instance.GetCount(pnCount)
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
- 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.