System.Web.UI.WebControls.CookieParameter.Clone Method

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

Syntax

protected override Parameter Clone ()

Returns

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

Remarks

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

Requirements

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