System.Web.UI.WebControls.DataControlFieldCollection.CloneFields Method

Creates a copy of the current collection.

Syntax

public DataControlFieldCollection CloneFields ()

Returns

A System.Web.UI.WebControls.DataControlFieldCollection that contains a copy of each data control field in the current collection.

Remarks

Use the DataControlFieldCollection.CloneFields method to create a copy of the current collection. This method is used primarily by design-time dialog boxes to implement rollback behavior when an operation is canceled.

Requirements

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