IEnumComReferences.Next Method

Retrieves the next group of COM references.

Namespace:  Microsoft.VisualStudio.Shell.Interop
Assembly:  Microsoft.VisualStudio.Shell.Interop (in Microsoft.VisualStudio.Shell.Interop.dll)

Syntax

‘선언
Function Next ( _
    celt As UInteger, _
    <OutAttribute> rgRefs As COMREFERENCE(), _
    <OutAttribute> ByRef pceltFetched As UInteger _
) As Integer
‘사용 방법
Dim instance As IEnumComReferences
Dim celt As UInteger
Dim rgRefs As COMREFERENCE()
Dim pceltFetched As UInteger
Dim returnValue As Integer

returnValue = instance.Next(celt, rgRefs, _
    pceltFetched)
int Next(
    uint celt,
    COMREFERENCE[] rgRefs,
    out uint pceltFetched
)
int Next(
    [InAttribute] unsigned int celt, 
    [OutAttribute] array<COMREFERENCE>^ rgRefs, 
    [OutAttribute] unsigned int% pceltFetched
)
abstract Next : 
        celt:uint32 * 
        rgRefs:COMREFERENCE[] byref * 
        pceltFetched:uint32 byref -> int 
function Next(
    celt : uint, 
    rgRefs : COMREFERENCE[], 
    pceltFetched : uint
) : int

Parameters

  • celt
    Type: System.UInt32
    [in] Number of COM references to return, or zero to indicate a request for all of the objects.
  • pceltFetched
    Type: System.UInt32%
    [out] Actual number of COM references retrieved.

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 vsshell.idl:

[C++]

HRESULT IEnumComReferences::Next(
   [in] ULONG celt, 
   [out, size_is(celt), length_is(*pceltFetched)] PCOMREFERENCE rgRefs,    [out] ULONG *pceltFetched
);

.NET Framework Security

See Also

Reference

IEnumComReferences Interface

IEnumComReferences Members

Microsoft.VisualStudio.Shell.Interop Namespace