IEnumString.Clone(IEnumString) 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 another enumerator that contains the same enumeration state as the current one.
public:
void Clone([Runtime::InteropServices::Out] Microsoft::Office::Interop::InfoPath::IEnumString ^ % ppenum);
public void Clone (out Microsoft.Office.Interop.InfoPath.IEnumString ppenum);
abstract member Clone : -> unit
Public Sub Clone (ByRef ppenum As IEnumString)
Parameters
- ppenum
- IEnumString
Address 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.