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.
Namespace: Microsoft.Synchronization.Data
Assembly: Microsoft.Synchronization.Data (in microsoft.synchronization.data.dll)
Syntax
'Declaration
Public Function Add ( _
foreignKeyName As String, _
parentTable As String, _
parentColumn As String, _
childTable As String, _
childColumn As String _
) As SyncSchemaForeignKey
public SyncSchemaForeignKey Add (
string foreignKeyName,
string parentTable,
string parentColumn,
string childTable,
string childColumn
)
public:
SyncSchemaForeignKey^ Add (
String^ foreignKeyName,
String^ parentTable,
String^ parentColumn,
String^ childTable,
String^ childColumn
)
public SyncSchemaForeignKey Add (
String foreignKeyName,
String parentTable,
String parentColumn,
String childTable,
String childColumn
)
public function Add (
foreignKeyName : String,
parentTable : String,
parentColumn : String,
childTable : String,
childColumn : String
) : SyncSchemaForeignKey
Parameters
- foreignKeyName
The name of the foreign key constraint.
- parentTable
The name of the parent table.
- parentColumn
The name of the primary key or unique column in the parent table.
- childTable
The name of the child table.
- childColumn
The name of the foreign key column in the child table.
Return Value
The SyncSchemaForeignKey object that was added to the collection.
Thread Safety
Any public static (Shared in Visual Basic) members of this type are thread safe. Any instance members are not guaranteed to be thread safe.
Platforms
Development Platforms
For a list of the supported platforms, see Hardware and Software Requirements (Synchronization Services).
Target Platforms
See Also
Reference
SyncSchemaForeignKeys Class
SyncSchemaForeignKeys Members
Microsoft.Synchronization.Data Namespace