共用方式為


IVsLibraryMgr.GetCount(UInt32) Method

Definition

Returns the number of libraries implemented by the library manager.

public:
 int GetCount([Runtime::InteropServices::Out] System::UInt32 % pnCount);
int GetCount([Runtime::InteropServices::Out] unsigned int & pnCount);
public int GetCount (out uint pnCount);
abstract member GetCount : uint32 -> int
Public Function GetCount (ByRef pnCount As UInteger) As Integer

Parameters

pnCount
UInt32

[out] Pointer to the count of libraries managed by your library manager.

Returns

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.

Applies to