Remarque
L’accès à cette page nécessite une autorisation. Vous pouvez essayer de vous connecter ou de modifier des répertoires.
L’accès à cette page nécessite une autorisation. Vous pouvez essayer de modifier des répertoires.
Initializes a new instance of the ForeignKey class on the specified table with the specified name.
Espace de noms : Microsoft.SqlServer.Management.Smo
Assembly : Microsoft.SqlServer.Smo (en Microsoft.SqlServer.Smo.dll)
Syntaxe
'Déclaration
Public Sub New ( _
table As Table, _
name As String _
)
'Utilisation
Dim table As Table
Dim name As String
Dim instance As New ForeignKey(table, name)
public ForeignKey(
Table table,
string name
)
public:
ForeignKey(
Table^ table,
String^ name
)
new :
table:Table *
name:string -> ForeignKey
public function ForeignKey(
table : Table,
name : String
)
Paramètres
- table
Type : Microsoft.SqlServer.Management.Smo.Table
A Table object value that specifies the table on which to create the foreign key.
- name
Type : System.String
A String value that specifies the name of the foreign key.
Exemples
Création, modification et suppression de clés étrangères
Voir aussi
Référence
Espace de noms Microsoft.SqlServer.Management.Smo