Méthode ForeignKeyCollection.Add
Adds a ForeignKey object to the foreign key collection.
Espace de noms : Microsoft.SqlServer.Management.Smo
Assembly : Microsoft.SqlServer.Smo (en Microsoft.SqlServer.Smo.dll)
Syntaxe
'Déclaration
Public Sub Add ( _
foreignKey As ForeignKey _
)
'Utilisation
Dim instance As ForeignKeyCollection
Dim foreignKey As ForeignKey
instance.Add(foreignKey)
public void Add(
ForeignKey foreignKey
)
public:
void Add(
ForeignKey^ foreignKey
)
member Add :
foreignKey:ForeignKey -> unit
public function Add(
foreignKey : ForeignKey
)
Paramètres
- foreignKey
Type : Microsoft.SqlServer.Management.Smo.ForeignKey
A ForeignKey object value that is to be added into the foreign key collection.