Retrieves text views from the enumeration sequence.
Namespace: Microsoft.VisualStudio.TextManager.Interop
Assembly: Microsoft.VisualStudio.TextManager.Interop (in Microsoft.VisualStudio.TextManager.Interop.dll)
Syntax
'宣言
Function Next ( _
celt As UInteger, _
<OutAttribute> rgelt As IVsTextView(), _
ByRef pceltFetched As UInteger _
) As Integer
'使用
Dim instance As IVsEnumTextViews
Dim celt As UInteger
Dim rgelt As IVsTextView()
Dim pceltFetched As UInteger
Dim returnValue As Integer
returnValue = instance.Next(celt, rgelt, _
pceltFetched)
int Next(
uint celt,
IVsTextView[] rgelt,
ref uint pceltFetched
)
int Next(
unsigned int celt,
[OutAttribute] array<IVsTextView^>^ rgelt,
unsigned int% pceltFetched
)
function Next(
celt : uint,
rgelt : IVsTextView[],
pceltFetched : uint
) : int
Parameters
celt
Type: System.UInt32[in] The requested number of text views to retrieve.
rgelt
Type: [][out, size_is(celt)] The list of IVsTextView objects that have been retrieved.
pceltFetched
Type: System.UInt32%[out] Pointer to the actual number of hidden regions supplied in pceltFetched. The caller of this method can set this to a null reference (Nothing in Visual Basic) if celt is one.
Return Value
Type: System.Int32
If the method succeeds, it returns S_OK. If it fails, it returns an error code.
Remarks
COM Signature
From textmgr.idl:
[C++]
HRESULT IVsEnumTextViews::Next(
ULONG celt,
[out, size_is(celt), length_is(*pceltFetched)] IVsTextView **rgelt,
ULONG *pceltFetched
);
Permissions
- Full trust for the immediate caller. This member cannot be used by partially trusted code. For more information, see Using Libraries from Partially Trusted Code.