VsEnumerable<TComEnumerator,TComEnumerated,TEnumerated>.Clone Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Creates a copy of the enumerator and all its descendants. The returned enumerator contains the same enumeration state as the current one.
public:
virtual int Clone([Runtime::InteropServices::Out] TComEnumerator % ppEnum);
public int Clone (out TComEnumerator ppEnum);
abstract member Clone : 'ComEnumerator -> int
override this.Clone : 'ComEnumerator -> int
Public Function Clone (ByRef ppEnum As TComEnumerator) As Integer
Parameters
- ppEnum
- TComEnumerator
Address of a pointer to the copied enumerator.
Returns
S_OK if successful, or an error otherwise.