IVsEnumCodeBlocks.Clone(IVsEnumCodeBlocks) Method

Definition

Returns a copy of the current enumeration as a separate object.

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

Parameters

ppEnum
IVsEnumCodeBlocks

[out] Returns a copy of this enumeration as a separate object.

Returns

If successful, returns S_OK; otherwise, returns an error code.

Remarks

COM Signature

From singlefileeditor.idl:

HRESULT Clone(  
   [out] IVsEnumCodeBlocks **ppenum  
);  

The copy of the enumeration has the same state as the original at the time this method is called. However, the copy's and the original's states are separate and can be changed individually.

Applies to