SyncSchemaForeignKeys.Add 方法 (String, String, String[], String, String )

SyncSchemaForeignKey 对象添加到集合的末尾,并添加指定的约束名、父表和列、子表和列。

命名空间: Microsoft.Synchronization.Data
程序集: Microsoft.Synchronization.Data(在 microsoft.synchronization.data.dll 中)

语法

声明
Public Function Add ( _
    foreignKeyName As String, _
    parentTable As String, _
    parentColumns As String(), _
    childTable As String, _
    childColumns As String() _
) As SyncSchemaForeignKey
用法
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

参数

  • foreignKeyName
    外键约束的名称。
  • parentTable
    父表的名称。
  • parentColumns
    父表中的主键或唯一列的数组。
  • childTable
    子表的名称。
  • childColumns
    子表中的外键列的数组。

返回值

已添加到集合中的 SyncSchemaForeignKey 对象。

请参阅

参考

SyncSchemaForeignKeys 类
SyncSchemaForeignKeys 成员
Microsoft.Synchronization.Data 命名空间