共用方式為


VsEnumerable<TComEnumerator,TComEnumerated,TEnumerated>.Clone Method

Definition

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.

Applies to