Mono Class Library: System.Data.DataSet Overview | Members

System.Data.DataSet.Clone Method

Makes a copy of the DataSet structure (schemas, relations and constraints) and returns it as a new instance of DataSet. The data is not copied.

public virtual DataSet Clone ()

Returns

A DataSet with the same structure as the current one, but with no data.

Remarks

If the current object is a subclass of DataSet, the clone will also be of the same type.

Requirements

Namespace: System.Data
Assembly: System.Data (in System.Data.dll)
Assembly Versions: 1.0.5000.0, 2.0.0.0