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)

Syntax

'Declaration
Public ReadOnly Property RowIdColumns As Collection(Of String)
'Usage
Dim instance As DbSyncAdapter
Dim value As Collection(Of String)

value = instance.RowIdColumns
public Collection<string> RowIdColumns { get; }
public:
property Collection<String^>^ RowIdColumns {
    Collection<String^>^ get ();
}
/** @property */
public Collection<String> get_RowIdColumns ()
public function get RowIdColumns () : Collection<String>

Property Value

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

Example

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

See Also

Reference

DbSyncAdapter Class
DbSyncAdapter Members
Microsoft.Synchronization.Data Namespace