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 命名空間