共用方式為


IVsEnumDependencies.Clone(IVsEnumDependencies) Method

Definition

Creates another enumerator that contains the same enumeration state as the current one.

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

Parameters

ppIVsEnumDependencies
IVsEnumDependencies

[out] Pointer to the cloned IVsEnumDependencies interface, a new enumerator that is set to the same state as the current IVsEnumDependencies interface. If the method is unsuccessful, the value of ppIVsEnumDependencies is undefined.

Returns

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

Remarks

COM Signature

From vsshell.idl:

HRESULT IVsEnumDependencies::Clone(  
   [out] IVsEnumDependencies **ppIVsEnumDependencies  
);  

Using this method, the environment can record a particular point in the enumeration sequence and return to that point later. The new enumerator works on the same set of output items as the original enumerator.

Applies to