Compartilhar via


IVsEnumTaskItems.Clone(IVsEnumTaskItems) Method

Definition

Creates an enumerator that contains the same state as the current enumerator.

public:
 int Clone([Runtime::InteropServices::Out] Microsoft::VisualStudio::Shell::Interop::IVsEnumTaskItems ^ % ppenum);
public:
 int Clone([Runtime::InteropServices::Out] Microsoft::VisualStudio::Shell::Interop::IVsEnumTaskItems ^ &  ppenum);
int Clone([Runtime::InteropServices::Out] Microsoft::VisualStudio::Shell::Interop::IVsEnumTaskItems const & & ppenum);
public int Clone (out Microsoft.VisualStudio.Shell.Interop.IVsEnumTaskItems ppenum);
abstract member Clone : IVsEnumTaskItems -> int
Public Function Clone (ByRef ppenum As IVsEnumTaskItems) As Integer

Parameters

ppenum
IVsEnumTaskItems

[out] Pointer to the cloned IVsEnumTaskItems interface.

Returns

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

Remarks

COM Signature

From vsshell.idl:

HRESULT IVsEnumTaskItems::Clone(  
   [out] IVsEnumTaskItems **ppenum  
);  

Using this method, a client can record a snapshot of the enumeration sequence and later return to that point. The new enumerator supports the same interface as the original one.

Applies to