IVsExpansionEnumeration.GetCount(UInt32) 方法

定义

返回此枚举中表示的对象数。

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

参数

pCount
UInt32

弄返回对象的数量。

返回

Int32

如果该方法成功,则它会返回 S_OK。 如果该方法失败,则会返回错误代码。

注解

使用此计数值可确定可以使用方法检索的最大对象数 Next

COM 签名

从 textmgr2:

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

适用于