IEnumString.Clone Method
Creates another enumerator that contains the same enumeration state as the current one.
Namespace: Microsoft.Office.Interop.InfoPath
Assembly: Microsoft.Office.Interop.InfoPath (in Microsoft.Office.Interop.InfoPath.dll)
Syntax
'Declaration
Sub Clone ( _
<OutAttribute> ByRef ppenum As IEnumString _
)
'Usage
Dim instance As IEnumString
Dim ppenum As IEnumString
instance.Clone(ppenum)
void Clone(
out IEnumString ppenum
)
Parameters
ppenum
Type: Microsoft.Office.Interop.InfoPath.IEnumStringAddress of IEnumString* pointer variable that receives the interface pointer to the enumeration object. If the method is unsuccessful, the value of this output variable is undefined.
Remarks
This method supports the standard return values E_INVALIDARG, E_OUTOFMEMORY, and E_UNEXPECTED.
Using this method, a client can record a particular point in the enumeration sequence and then return to that point at a later time. The new enumerator supports the same interface as the original one.