top button
Flag Notify
    Connect to us
      Site Registration

Site Registration

What is the difference between the Clone() and Copy() methods of the DataSet class?

+7 votes
671 views

Examples will be helpful.

posted Feb 3, 2014 by Muskan

Share this question
Facebook Share Button Twitter Share Button LinkedIn Share Button

1 Answer

+1 vote
 
Best answer

The Clone() method copies only the structure of a DataSet. The copied structure includes all the relation, constraint, and DataTable schemas used by the DataSet. The Clone() method does not copy the data, which is stored in the DataSet.

The Copy() method copies the structure as well as the data stored in the DataSet.

answer Feb 3, 2014 by Salil Agrawal
...