Condividi tramite


IVsExpansionEnumeration.GetCount(UInt32) Method

Definition

Returns the number of objects represented in this enumeration.

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

Parameters

pCount
UInt32

[out] Returns the number of objects.

Returns

If the method succeeds, it returns S_OK. If it fails, it returns an error code.

Remarks

Use this count value to determine how the maximum number of objects that can be retrieved using the Next method.

COM Signature

From textmgr2.idl:

HRESULT IVsExpansionEnumeration::GetCount(  
   [out]ULONG *pCount  
);  

Applies to