다음을 통해 공유


SyncSchemaForeignKeys.Add 메서드 (String, String, String[], String, String )

지정한 제약 조건 이름, 부모 테이블과 열, 자식 테이블과 열을 포함하는 SyncSchemaForeignKey 개체를 컬렉션 끝에 추가합니다.

네임스페이스: Microsoft.Synchronization.Data
어셈블리: microsoft.synchronization.data.dll의 Microsoft.Synchronization.Data

구문

‘선언
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
    FOREIGN KEY 제약 조건의 이름입니다.
  • parentTable
    부모 테이블의 이름입니다.
  • parentColumns
    부모 테이블에 있는 기본 키 또는 고유 열의 배열입니다.
  • childTable
    자식 테이블의 이름입니다.
  • childColumns
    자식 테이블에 있는 외래 키 열의 배열입니다.

반환 값

컬렉션에 추가된 SyncSchemaForeignKey 개체입니다.

참고 항목

참조

SyncSchemaForeignKeys 클래스
SyncSchemaForeignKeys 멤버
Microsoft.Synchronization.Data 네임스페이스