Export (0) Print
Expand All

ForeignKeyColumnCollection.Add Method (ForeignKeyColumn, String)

Adds a ForeignKeyColumn object to the position after a specified, existing ForeignKeyColumn object in the foreign key column collection.

Namespace:  Microsoft.SqlServer.Management.Smo
Assembly:  Microsoft.SqlServer.Smo (in Microsoft.SqlServer.Smo.dll)

public void Add(
	ForeignKeyColumn foreignKeyColumn,
	string insertAtColumnName
)

Parameters

foreignKeyColumn
Type: Microsoft.SqlServer.Management.Smo.ForeignKeyColumn
A ForeignKeyColumn object value that is to be added into the foreign key column collection.
insertAtColumnName
Type: String
A String value that specifies the name of the existing ForeignKeyColumn object in the collection after which to insert the new ForeignKeyColumn object.
Was this page helpful?
(1500 characters remaining)
Thank you for your feedback

Community Additions

ADD
Show:
© 2014 Microsoft