共用方式為


IEnumHierarchyItems.Next(UInt32, VSITEMSELECTION[], UInt32) Method

Definition

Moves to the next item.

public:
 int Next(System::UInt32 celt, cli::array <Microsoft::VisualStudio::Shell::Interop::VSITEMSELECTION> ^ rgelt, [Runtime::InteropServices::Out] System::UInt32 % pceltFetched);
int Next(unsigned int celt, std::Array <Microsoft::VisualStudio::Shell::Interop::VSITEMSELECTION> const & rgelt, [Runtime::InteropServices::Out] unsigned int & pceltFetched);
public int Next (uint celt, Microsoft.VisualStudio.Shell.Interop.VSITEMSELECTION[] rgelt, out uint pceltFetched);
abstract member Next : uint32 * Microsoft.VisualStudio.Shell.Interop.VSITEMSELECTION[] * uint32 -> int
Public Function Next (celt As UInteger, rgelt As VSITEMSELECTION(), ByRef pceltFetched As UInteger) As Integer

Parameters

celt
UInt32

[in] The number of items to advance.

rgelt
VSITEMSELECTION[]

[in] A VSITEMSELECTION array containing the selected item.

pceltFetched
UInt32

[in] The number of elements selected

Returns

If the method succeeds, it returns S_OK. If it fails, it returns an error code.

Remarks

COM Signature

From vsshell.idl:

[C++]

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

Applies to