Partager via


RowIdColumns propriété

Obtient une collection des noms de colonnes qui forment l'ID unique de chaque ligne de la table.

Espace de noms :  Microsoft.Synchronization.Data
Assembly :  Microsoft.Synchronization.Data (dans Microsoft.Synchronization.Data.dll)

Syntaxe

'Déclaration
Public ReadOnly Property RowIdColumns As Collection(Of String)
    Get
'Utilisation
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 ();
}
member RowIdColumns : Collection<string>
function get RowIdColumns () : Collection<String>

Valeur de la propriété

Type : System.Collections.ObjectModel. . :: . .Collection< (Of < ( <'String> ) > ) >
Collection des noms de colonnes qui forment l'ID unique de chaque ligne de la table.

Exemples

L'exemple de code suivant crée un objet SyncAdapter pour la table Customer et indique que la colonne CustomerId doit être utilisée pour identifier chaque ligne dans la 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")

Voir aussi

Référence

DbSyncAdapter Classe

Membres DbSyncAdapter

Espace de noms Microsoft.Synchronization.Data