Click here to view and discuss this page in DocCommentXchange. In the future, you will be sent there automatically.

SQL Anywhere 11.0.1 (中文) » UltraLite - .NET 编程 » UltraLite .NET 2.0 API 参考 » ULBulkCopy 类 » WriteToServer 方法

 

WriteToServer(DataTable, DataRowState) 方法

将所提供的 System.Data.DataTable 中具有指定行状态的所有行复制到由 ULBulkCopy 对象的 DestinationTableName 所指定的目标表中。

语法
Visual Basic
Public Sub WriteToServer( _
   ByVal table As DataTable, _
   ByVal rowState As DataRowState _
)
C#
public void WriteToServer(
   DataTable table,
   DataRowState rowState
);
参数
  • table   一个 System.Data.DataTable,它的行将复制到目标表中。

  • rowState   System.Data.DataRowState 枚举中的一个值。只有与行状态匹配的行才会复制到目标表中。

注释

如果指定了 rowState,则仅复制那些具有相同行状态的行。

另请参见