共用方式為


Add 方法 (ForeignKeyColumn, String)

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

命名空間:  Microsoft.SqlServer.Management.Smo
組件:  Microsoft.SqlServer.Smo (在 Microsoft.SqlServer.Smo.dll 中)

語法

'宣告
Public Sub Add ( _
    foreignKeyColumn As ForeignKeyColumn, _
    insertAtColumnName As String _
)
'用途
Dim instance As ForeignKeyColumnCollection
Dim foreignKeyColumn As ForeignKeyColumn
Dim insertAtColumnName As String

instance.Add(foreignKeyColumn, insertAtColumnName)
public void Add(
    ForeignKeyColumn foreignKeyColumn,
    string insertAtColumnName
)
public:
void Add(
    ForeignKeyColumn^ foreignKeyColumn, 
    String^ insertAtColumnName
)
member Add : 
        foreignKeyColumn:ForeignKeyColumn * 
        insertAtColumnName:string -> unit 
public function Add(
    foreignKeyColumn : ForeignKeyColumn, 
    insertAtColumnName : String
)

參數

範例

使用集合