Clones the structure of the DataSet, including all DataTable schemas, relations, and constraints.
[Visual Basic] Public Function Clone() As DataSet [C#] public DataSet Clone(); [C++] public: DataSet* Clone(); [JScript] public function Clone() : DataSet;
A new DataSet with the same schema as the current DataSet.
Note If these classes have been subclassed, the clone will also be of the same subclasses.
The following example creates a clone of a DataSet object's schema.
[Visual Basic]
Private Sub Get Clone() Dim myDataView As DataView myDataView = DataSet1.DefautView Dim ds2 As DataSet ds2.DefaultView End Sub
DataSet Class | DataSet Members | System.Data Namespace | Copy