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

SQL Anywhere 10.0.1 » MobiLink - Server Administration » Writing Synchronization Scripts in .NET » MobiLink server API for .NET reference » UploadData interface

UploadData interface Next Page

GetUploadedTableByName method


Syntax

UploadedTableData GetUploadedTableByName(
   string table-name);

Remarks

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

Parameters
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");

  // ...
}