次の方法で共有


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