This documentation is archived and is not being maintained.

ControlDesigner.RegisterClone Method

Registers internal data in a cloned control.

Namespace:  System.Web.UI.Design
Assembly:  System.Design (in System.Design.dll)

public void RegisterClone(
	Object original,
	Object clone
)

Parameters

original
Type: System.Object

The control associated with the control designer.

clone
Type: System.Object

The cloned copy of the associated control.

ExceptionCondition
ArgumentNullException

original is null.

-or-

clone is null.

Whenever an item is cloned, there might be some internal data structures, such as meta: attributes, that should be included in the cloned control by the control designer. A page developer might add meta: attributes to the markup of a control and there is no way, nor is there a reason, for the control to distinguish what those tags might be. Therefore, if your control designer provides a way to edit complex properties or formats before applying changes to a page, you would create a clone of the control, pass both the original control and the clone to this RegisterClone method, and then, when the changes are persisted to the tag, all meta: attributes are also persisted.

Windows 7, Windows Vista, Windows XP SP2, Windows XP Media Center Edition, Windows XP Professional x64 Edition, Windows XP Starter Edition, Windows Server 2008 R2, Windows Server 2008, Windows Server 2003, Windows Server 2000 SP4, Windows Millennium Edition, Windows 98

The .NET Framework and .NET Compact Framework do not support all versions of every platform. For a list of the supported versions, see .NET Framework System Requirements.

.NET Framework

Supported in: 3.5, 3.0, 2.0
Show: