Partilhar via


Método SyncSchemaForeignKeys.Add (String, String, String[], String, String )

Adiciona um objeto SyncSchemaForeignKey ao final da coleção, com o nome da restrição, a tabela pai e as colunas, e a tabela filho e as colunas especificados.

Namespace: Microsoft.Synchronization.Data
Assembly: Microsoft.Synchronization.Data (em microsoft.synchronization.data.dll)

Sintaxe

'Declaração
Public Function Add ( _
    foreignKeyName As String, _
    parentTable As String, _
    parentColumns As String(), _
    childTable As String, _
    childColumns As String() _
) As SyncSchemaForeignKey
'Uso
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

Parâmetros

  • foreignKeyName
    O nome da restrição de chave estrangeira.
  • parentTable
    O nome da tabela pai.
  • parentColumns
    Uma matriz da chave primária ou colunas exclusivas na tabela pai.
  • childTable
    O nome da tabela filho.
  • childColumns
    Uma matriz de colunas da chave estrangeira na tabela filho.

Valor de retorno

O objeto SyncSchemaForeignKey que foi adicionado à coleção.

Consulte também

Referência

Classe SyncSchemaForeignKeys
Membros SyncSchemaForeignKeys
Namespace Microsoft.Synchronization.Data