Skip to content

Latest commit

 

History

History
147 lines (105 loc) · 3.75 KB

nf-msopc-iopcpartenumerator-clone.md

File metadata and controls

147 lines (105 loc) · 3.75 KB
UID title description helpviewer_keywords old-location tech.root ms.assetid ms.date ms.keywords req.header req.include-header req.target-type req.target-min-winverclnt req.target-min-winversvr req.kmdf-ver req.umdf-ver req.ddi-compliance req.unicode-ansi req.idl req.max-support req.namespace req.assembly req.type-library req.lib req.dll req.irql targetos req.typenames req.redist ms.custom f1_keywords dev_langs topic_type api_type api_location api_name
NF:msopc.IOpcPartEnumerator.Clone
IOpcPartEnumerator::Clone (msopc.h)
Creates a copy of the current enumerator and all its descendants. (IOpcPartEnumerator.Clone)
Clone
Clone method [Open Packaging Conventions]
Clone method [Open Packaging Conventions]
IOpcPartEnumerator interface
IOpcPartEnumerator interface [Open Packaging Conventions]
Clone method
IOpcPartEnumerator.Clone
IOpcPartEnumerator::Clone
msopc/IOpcPartEnumerator::Clone
opc.iopcpartenumerator_clone
opc\iopcpartenumerator_clone.htm
OPC
b2719b6b-dcbd-4f8b-bb53-42114b95d6b3
12/05/2018
Clone, Clone method [Open Packaging Conventions], Clone method [Open Packaging Conventions],IOpcPartEnumerator interface, IOpcPartEnumerator interface [Open Packaging Conventions],Clone method, IOpcPartEnumerator.Clone, IOpcPartEnumerator::Clone, msopc/IOpcPartEnumerator::Clone, opc.iopcpartenumerator_clone
msopc.h
Windows
Windows 7 [desktop apps only]
Windows Server 2008 R2 [desktop apps only]
Opcobjectmodel.idl
Windows
19H1
IOpcPartEnumerator::Clone
msopc/IOpcPartEnumerator::Clone
c++
APIRef
kbSyntax
COM
msopc.h
IOpcPartEnumerator.Clone

IOpcPartEnumerator::Clone

-description

Creates a copy of the current enumerator and all its descendants.

-parameters

-param copy [out, retval]

A pointer to the IOpcPartEnumerator interface of the new enumerator.

-returns

The method returns an HRESULT. Possible values include, but are not limited to, those in the following table.

Return code/value Description
S_OK
The method succeeded.
E_POINTER
The copy parameter is NULL.
OPC_E_ENUM_COLLECTION_CHANGED
0x80510050
The enumerator is invalid because the underlying set has changed.

-remarks

When an enumerator is created, the current position precedes the first pointer. To set the current position to the first pointer of the enumerator, call the MoveNext method after creating the enumerator.

Thread Safety

Packaging objects are not thread-safe.

For more information, see the Getting Started with the Packaging API.

-see-also

Getting Started with the Packaging API

IOpcPartEnumerator

IOpcPartSet

Overviews

Packaging API Reference

Packaging API Samples

Packaging Errors

Reference