SyncSchemaForeignKeys::Add Method (String, String, String, String, String)
Adds a SyncSchemaForeignKey object to the end of the collection, with the specified constraint name, parent table and column, and child table and column.
Assembly: Microsoft.Synchronization.Data (in Microsoft.Synchronization.Data.dll)
public:
SyncSchemaForeignKey^ Add(
String^ foreignKeyName,
String^ parentTable,
String^ parentColumn,
String^ childTable,
String^ childColumn
)
Parameters
- foreignKeyName
- Type: System::String
The name of the foreign key constraint.
- parentTable
- Type: System::String
The name of the parent table.
- parentColumn
- Type: System::String
The name of the primary key or unique column in the parent table.
- childTable
- Type: System::String
The name of the child table.
- childColumn
- Type: System::String
The name of the foreign key column in the child table.
Return Value
Type: Microsoft.Synchronization.Data::SyncSchemaForeignKeyThe SyncSchemaForeignKey object that was added to the collection.
| Exception | Condition |
|---|---|
| ArgumentException | parentTable, parentColumn, childTable, or childColumn does not belong to the current data set. |
Show: