IVsEnumBSTR.Next 方法

枚举顺序检索 BSTR。

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

语法

声明
Function Next ( _
    celt As UInteger, _
    <OutAttribute> rgelt As String(), _
    <OutAttribute> ByRef pceltFetched As UInteger _
) As Integer
int Next(
    uint celt,
    string[] rgelt,
    out uint pceltFetched
)
int Next(
    [InAttribute] unsigned int celt, 
    [OutAttribute] array<String^>^ rgelt, 
    [OutAttribute] unsigned int% pceltFetched
)
abstract Next : 
        celt:uint32 * 
        rgelt:string[] byref * 
        pceltFetched:uint32 byref -> int
function Next(
    celt : uint, 
    rgelt : String[], 
    pceltFetched : uint
) : int

参数

  • celt
    类型:UInt32

    [in] 检索的 BSTR 的请求数。

  • rgelt
    类型:array<String[]

    [out, size_is(celt)] 检索出 BSTR 的列表。

  • pceltFetched
    类型:UInt32%

    [out] 对 pceltFetched提供的隐藏区域的实际数目的指针。 ,如果 celt 是一个,此方法的调用方可以将此到 nullnull 引用(在 Visual Basic 中为 Nothing) 。

返回值

类型:Int32
如果方法成功,则返回 S_OK。如果失败,它会返回一个错误代码。

备注

COM 签名

从 textmgr.idl:

[C++]

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

.NET Framework 安全性

请参阅

参考

IVsEnumBSTR 接口

Microsoft.VisualStudio.TextManager.Interop 命名空间