DbSyncForeignKeyConstraint Constructor (String, String, String, Collection<String>, Collection<String>)
Namespace: Microsoft.Synchronization.Data
Assembly: Microsoft.Synchronization.Data (in Microsoft.Synchronization.Data.dll)
Syntax
'Declaration
Public Sub New ( _
name As String, _
parentTable As String, _
childTable As String, _
parentColumns As Collection(Of String), _
childColumns As Collection(Of String) _
)
'Usage
Dim name As String
Dim parentTable As String
Dim childTable As String
Dim parentColumns As Collection(Of String)
Dim childColumns As Collection(Of String)
Dim instance As New DbSyncForeignKeyConstraint(name, parentTable, _
childTable, parentColumns, childColumns)
public DbSyncForeignKeyConstraint(
string name,
string parentTable,
string childTable,
Collection<string> parentColumns,
Collection<string> childColumns
)
public:
DbSyncForeignKeyConstraint(
String^ name,
String^ parentTable,
String^ childTable,
Collection<String^>^ parentColumns,
Collection<String^>^ childColumns
)
new :
name:string *
parentTable:string *
childTable:string *
parentColumns:Collection<string> *
childColumns:Collection<string> -> DbSyncForeignKeyConstraint
public function DbSyncForeignKeyConstraint(
name : String,
parentTable : String,
childTable : String,
parentColumns : Collection<String>,
childColumns : Collection<String>
)
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.
Exceptions
Exception | Condition |
---|---|
ArgumentNullException | parentColumns or childColumns is a null reference (Nothing in Visual Basic). |
See Also
Reference
DbSyncForeignKeyConstraint Class