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, _
parentColumn As String, _
childTable As String, _
childColumn As String _
) As SyncSchemaForeignKey
'用途
Dim instance As SyncSchemaForeignKeys
Dim foreignKeyName As String
Dim parentTable As String
Dim parentColumn As String
Dim childTable As String
Dim childColumn As String
Dim returnValue As SyncSchemaForeignKey
returnValue = instance.Add(foreignKeyName, parentTable, parentColumn, childTable, 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 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
參數
- foreignKeyName
外部索引鍵條件約束的名稱。
- parentTable
父資料表的名稱。
- parentColumn
父資料表中的主索引鍵或唯一資料行的名稱。
- childTable
子資料表的名稱。
- childColumn
子資料表中的外部索引鍵資料行名稱。
傳回值
已加入至此集合中的 SyncSchemaForeignKey 物件。
請參閱
參考
SyncSchemaForeignKeys 類別
SyncSchemaForeignKeys 成員
Microsoft.Synchronization.Data 命名空間