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

SQL Anywhere 11.0.1 (Français) » MobiLink - Server Administration » MobiLink Server APIs » Writing synchronization scripts in .NET » MobiLink server API for .NET reference » UploadData interface

 

GetUploadedTableByName method

Syntax
UploadedTableData GetUploadedTableByName(
   string table-name);
Remarks

Gets the named Uploaded table data in this uploaded transaction. Returns null if there is no table in this transaction with the given name.

Parameters
  • table-name   Name of the table for which you want the uploaded data.

Returns

Uploaded data for the given table name or null if not found.

Example

Assume you use a method called HandleUpload for the handle_UploadData synchronization event. The following example uses the GetUploadedTableByName method to return an UploadedTableData instance for the remoteOrders table.

// The method used for the handle_UploadData event.
public void HandleUpload(UploadData ut) {
    UploadedTableData uploaded_t1 = ut.GetUploadedTableByName("remoteOrders");
    // ...
}