RowIdColumns プロパティ
テーブルの各行に対応する一意な ID を構成する列の名前のコレクションを取得します。
名前空間: Microsoft.Synchronization.Data
アセンブリ: Microsoft.Synchronization.Data (Microsoft.Synchronization.Data.dll 内)
構文
'宣言
Public ReadOnly Property RowIdColumns As Collection(Of String)
Get
'使用
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>
プロパティ値
型 : System.Collections.ObjectModel. . :: . .Collection< (Of < ( <'String> ) > ) >
テーブルの各行に対応する一意な ID を構成する列の名前のコレクション。
例
次のコード例では、Customer テーブルの SyncAdapter オブジェクトを作成し、CustomerId 列を使用してテーブルの各行を識別するように指定します。
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")