Creates a deep copy of the current object, as opposed to a shallow copy.

Namespace:  EPiServer.Core
Assembly:  EPiServer (in EPiServer.dll) Version: 5.2.375.236

Syntax

C#
public PageData Copy()

Return Value

A new PageData.

Remarks

In most cases you will probably want to use the new CreateWritableClone()()() method instead, since copying a read-only instance will return a new read-only instance.

This method performs a deep copy and the copy should therefore have no references to the original PageData instance. This is to say that you can freely modify the copy without altering the original.

See Also