WriteToServer(DataTable, DataRowState) method

Copies all rows in the supplied System.Data.DataTable with the specified row state to a destination table specified by the DestinationTableName of the ULBulkCopy object.

Syntax
Visual Basic
Public Sub WriteToServer( _
   ByVal table As DataTable, _
   ByVal rowState As DataRowState _
)
C#
public void WriteToServer(
   DataTable table,
   DataRowState rowState
);
Parameters
  • table   A System.Data.DataTable whose rows will be copied to the destination table.

  • rowState   A value from the System.Data.DataRowState enumeration. Only rows matching the row state are copied to the destination.

Remarks

If rowState is specified, then only those rows that have the same row state are copied.

See also