System.Data Namespace DataSet Class
Merges this DataSet with an array of DataRow objects, preserving changes according to the specified argument, and handling an incompatible schema according to the specified argument.
[ VB ]
Overloads Public Sub Merge ( _
ByVal rows ( ) As DataRow, _
ByVal preserveChanges As Boolean, _
ByVal missingSchemaAction As MissingSchemaAction _
)
[ C# ]
public void Merge (
DataRow [ ] rows,
bool preserveChanges,
MissingSchemaAction missingSchemaAction
);
[ C++ ]
public: void Merge (
DataRow* rows [ ],
bool preserveChanges,
MissingSchemaAction missingSchemaAction
);
[ JScript ]
public function Merge (
rows : DataRow [ ],
preserveChanges : Boolean,
missingSchemaAction : MissingSchemaAction
);
- rows
- The array of DataRow objects to merge with.
- preserveChanges
- true to preserve changes made to the DataSet; otherwise, false.
- missingSchemaAction
- One of the MissingSchemaAction values.
The Merge method is used to merge two DataSet objects that have largely similar schemas. A merge is typically used on a client application to incorporate the latest changes from a data source into an existing DataSet. This allows the client application to have a refreshed DataSet with the latest data from the data source.
For more information, see The DataSet Merge Method and Working with DataSets.
DataSet Members DataSet.Merge Overload List