IEnumRunningDocuments.Next 方法

返回指定数量的文档枚举序列的 cookie。

命名空间:  Microsoft.VisualStudio.Shell.Interop
程序集:  Microsoft.VisualStudio.Shell.Interop(在 Microsoft.VisualStudio.Shell.Interop.dll 中)

语法

声明
Function Next ( _
    celt As UInteger, _
    <OutAttribute> rgelt As UInteger(), _
    <OutAttribute> ByRef pceltFetched As UInteger _
) As Integer
int Next(
    uint celt,
    uint[] rgelt,
    out uint pceltFetched
)

参数

  • rgelt
    类型:array<System.UInt32[]
    [in, out] 用请求的 cookie 将填充的数组。此数组的大小必须至少 celt 成员。
  • pceltFetched
    类型:System.UInt32%
    [out] 返回实际上获取的 cookie 数。

返回值

类型:System.Int32
如果方法成功,则返回 S_OK。返回 S_FALSE ,如果小于 cookie 保持的指定 number 具有;否则,返回错误代码。

备注

COM 签名

从 vsshell.idl:

HRESULT IEnumRunningDocuments::Next(
   [in] ULONG celt, 
   [out, size_is(celt), length_is(*pceltFetched)] VSCOOKIE *rgelt,    [out] ULONG *pceltFetched
);

文档 cookie 是表示文档的单个值,并且只 RDT 知道 cookie 真正意义。在所有情况下将 cookie 作为无符号整数。

.NET Framework 安全性

请参见

参考

IEnumRunningDocuments 接口

Microsoft.VisualStudio.Shell.Interop 命名空间