DataControlFieldCollection.CloneFields Method ()

 

Creates a copy of the current collection.

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

public DataControlFieldCollection CloneFields()

Return Value

Type: System.Web.UI.WebControls.DataControlFieldCollection

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

Use the 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.

.NET Framework
Available since 2.0
Return to top
Show: