Partager via


Méthode Add (ForeignKeyColumn, Int32)

Adds a ForeignKeyColumn object at a specified index position in the foreign key column collection.

Espace de noms :  Microsoft.SqlServer.Management.Smo
Assembly :  Microsoft.SqlServer.Smo (en Microsoft.SqlServer.Smo.dll)

Syntaxe

'Déclaration
Public Sub Add ( _
    foreignKeyColumn As ForeignKeyColumn, _
    insertAtPosition As Integer _
)
'Utilisation
Dim instance As ForeignKeyColumnCollection
Dim foreignKeyColumn As ForeignKeyColumn
Dim insertAtPosition As Integer

instance.Add(foreignKeyColumn, insertAtPosition)
public void Add(
    ForeignKeyColumn foreignKeyColumn,
    int insertAtPosition
)
public:
void Add(
    ForeignKeyColumn^ foreignKeyColumn, 
    int insertAtPosition
)
member Add : 
        foreignKeyColumn:ForeignKeyColumn * 
        insertAtPosition:int -> unit 
public function Add(
    foreignKeyColumn : ForeignKeyColumn, 
    insertAtPosition : int
)

Paramètres

  • insertAtPosition
    Type : System. . :: . .Int32
    An Int32 value that specifies the index position of the foreign key column collection.