DbSyncAdapter.RowIdColumns-Eigenschaft
Ruft eine Auflistung der Namen von Spalten ab, die die eindeutige ID für jede in der Tabelle enthaltene Zeile bilden.
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>
Eigenschaftenwert
Eine Auflistung der Namen von Spalten, die die eindeutige ID für jede in der Tabelle enthaltene Zeile bilden.
Beispiel
Das folgende Codebeispiel erstellt ein SyncAdapter
-Objekt für die Customer
-Tabelle und legt fest, dass die CustomerId
-Spalte zum Identifizieren jeder Zeile in der Tabelle verwendet werden soll.
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")
Siehe auch
Verweis
DbSyncAdapter-Klasse
DbSyncAdapter-Member
Microsoft.Synchronization.Data-Namespace