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 columns, and child table and columns.
Namespace: Microsoft.Synchronization.Data
Assembly: Microsoft.Synchronization.Data (in microsoft.synchronization.data.dll)
Syntax
'Declaration
Public Function Add ( _
foreignKeyName As String, _
parentTable As String, _
parentColumns As String(), _
childTable As String, _
childColumns As String() _
) As SyncSchemaForeignKey
'Usage
Dim instance As SyncSchemaForeignKeys
Dim foreignKeyName As String
Dim parentTable As String
Dim parentColumns As String()
Dim childTable As String
Dim childColumns As String()
Dim returnValue As SyncSchemaForeignKey
returnValue = instance.Add(foreignKeyName, parentTable, parentColumns, childTable, childColumns)
public SyncSchemaForeignKey Add (
string foreignKeyName,
string parentTable,
string[] parentColumns,
string childTable,
string[] childColumns
)
public:
SyncSchemaForeignKey^ Add (
String^ foreignKeyName,
String^ parentTable,
array<String^>^ parentColumns,
String^ childTable,
array<String^>^ childColumns
)
public SyncSchemaForeignKey Add (
String foreignKeyName,
String parentTable,
String[] parentColumns,
String childTable,
String[] childColumns
)
public function Add (
foreignKeyName : String,
parentTable : String,
parentColumns : String[],
childTable : String,
childColumns : String[]
) : SyncSchemaForeignKey
Parameters
- foreignKeyName
The name of the foreign key constraint.
- parentTable
The name of the parent table.
- parentColumns
An array of the primary key or unique columns in the parent table.
- childTable
The name of the child table.
- childColumns
An array of the foreign key columns in the child table.
Return Value
The SyncSchemaForeignKey object that was added to the collection.
See Also
Reference
SyncSchemaForeignKeys Class
SyncSchemaForeignKeys Members
Microsoft.Synchronization.Data Namespace