다음을 통해 공유


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

반환 값

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

참고 항목

참조

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