4.7.4 IEnumVARIANT Clone() Example

The following diagram illustrates a call to IEnumVARIANT::Clone for a server that manages a collection of seven elements. Before the call, the current position is 2. The call to Clone() causes a new IEnumVARIANT server to be created. The new server manages a copy of the collection of seven elements, and its current position is set to 2. An object reference to the new IEnumVARIANT server is returned to the client.

Call to IEnumVARIANT::Clone

Figure 13: Call to IEnumVARIANT::Clone