DbSyncAdapter::RowIdColumns Property

Gets a collection of the names of the columns that make up the unique ID for each row in the table.

Namespace:  Microsoft.Synchronization.Data
Assembly:  Microsoft.Synchronization.Data (in Microsoft.Synchronization.Data.dll)

public:
property Collection<String^>^ RowIdColumns {
	Collection<String^>^ get ();
}

Property Value

Type: System.Collections.ObjectModel::Collection<String>
A collection of the names of the columns that make up the unique ID for each row in the table.

The following code example creates a SyncAdapter object for the Customer table and specifies that the CustomerId column should be used to identify each row in the table.

DbSyncAdapter adapterCustomer = new DbSyncAdapter("Customer");


//Specify the primary key, which Sync Framework uses
//to identify each row during synchronization.
adapterCustomer.RowIdColumns.Add("CustomerId");


Dim adapterCustomer As New DbSyncAdapter("Customer")

'Specify the primary key, which Sync Framework uses
'to identify each row during synchronization.
adapterCustomer.RowIdColumns.Add("CustomerId")


Show: