asp.net.ph

DataSet.Merge Method ( DataTable, Boolean, MissingSchemaAction )

System.Data Namespace   DataSet Class


Merges this DataTable with a specified DataTable preserving changes according to the specified argument, and handling an incompatible schema according to the specified argument.

[ VB ]
Overloads Public Sub Merge ( _
   ByVal table As DataTable, _
   ByVal preserveChanges As Boolean, _
   ByVal missingSchemaAction As MissingSchemaAction _
)

[ C# ]
public void Merge (
   DataTable table,
   bool preserveChanges,
   MissingSchemaAction missingSchemaAction
);

[ C++ ]
public: void Merge (
   DataTable* table,
   bool preserveChanges,
   MissingSchemaAction missingSchemaAction
);

[ JScript ]
public function Merge (
   table : DataTable,
   preserveChanges : Boolean,
   missingSchemaAction : MissingSchemaAction
);

Parameters

table
The DataSet whose data and schema will be merged.
preserveChanges
Whether changes in the current ( target ) DataSet should be maintained.
missingSchemaAction
One of the MissingSchemaAction values.

Exceptions


Exception Type Condition
ArgumentNullException Occurs when the dataSet is a null reference.

Remarks

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.

See Also

DataSet Members   DataSet.Merge Overload List Skip Navigation Links




Previous page Back to top Next page

Check out related books at Amazon

© 2025 Reynald Nuñez and asp.net.ph. All rights reserved.

If you have any question, comment or suggestion
about this site, please send us a note