System.Web.UI.WebControls.Parameter.Clone Method

Returns a duplicate of the current System.Web.UI.WebControls.Parameter instance.

Syntax

protected virtual Parameter Clone ()

Returns

A System.Web.UI.WebControls.Parameter that is an exact duplicate of the current one.

Remarks

The Parameter.Clone method calls the Parameter.#ctor(Parameter) copy constructor to initialize a new instance of the System.Web.UI.WebControls.Parameter class with the values of the current instance.

If you extend the System.Web.UI.WebControls.Parameter class, you can override the Parameter.Clone method to include any state that should be copied to a new instance of your derived class.

Requirements

Namespace: System.Web.UI.WebControls
Assembly: System.Web (in System.Web.dll)
Assembly Versions: 2.0.0.0
Since: .NET 2.0