DbSyncForeignKeyConstraint Constructor (String, String, String, Collection<String>, Collection<String>)
Namespace:
Microsoft.Synchronization.Data
Assembly: Microsoft.Synchronization.Data (in Microsoft.Synchronization.Data.dll)
Assembly: Microsoft.Synchronization.Data (in Microsoft.Synchronization.Data.dll)
public:
DbSyncForeignKeyConstraint(
String^ name,
String^ parentTable,
String^ childTable,
Collection<String^>^ parentColumns,
Collection<String^>^ childColumns
)
Parameters
- name
- Type: System::String
The name of the foreign key constraint.
- parentTable
- Type: System::String
The name of the parent table that is involved in the foreign key constraint.
- childTable
- Type: System::String
The name of the child table that is involved in the foreign key constraint.
- parentColumns
- Type: System.Collections.ObjectModel::Collection<String>
A collection of columns from the parent table that is involved in the foreign key constraint.
- childColumns
- Type: System.Collections.ObjectModel::Collection<String>
A collection of columns from the child table that is involved in the foreign key constraint.
| Exception | Condition |
|---|---|
| ArgumentNullException | parentColumns or childColumns is a nullptr. |
Show: