This document is archived and information here might be outdated. Recommended version. |
Provides access to members to copy objects by value. The object must support IPersistStream to be copied.
Provides a mechanism to duplicate an object using an objects persistence mechanism (IPersistStream). The objects state is written to a temporary stream and then "rehydrated" from that stream into a new instance of the object. This process is also known as a deep clone as an object will also duplicate all sub objects that it contains. Even if the object supports IClone, you may still want to use ObjectCopy since it does a full copy or 'deep clone' of the object.
Name | Description | |
---|---|---|
Copy | Obtains a new object which is a copy of the input object. | |
Overwrite | Overwrites the object with the contents of input object. |
Classes | Description |
---|---|
ObjectCopy | CoClass to copy objects by value. |