Share via


IEnumDebugCustomAttributes::Clone

Applies to: yesVisual Studio noVisual Studio for Mac

Note

This article applies to Visual Studio 2017. If you're looking for the latest Visual Studio documentation, see Visual Studio documentation. We recommend upgrading to the latest version of Visual Studio. Download it here

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

Syntax

HRESULT Clone ( 
   IEnumCustomAttributes** ppEnum
);
int Clone(
   out IEnumDebugCustomAttributes ppEnum
);

Parameters

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

Return Value

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

Remarks

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.

See also