共用方式為


Add 方法 (ForeignKeyColumn, Int32)

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

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

語法

'宣告
Public Sub Add ( _
    foreignKeyColumn As ForeignKeyColumn, _
    insertAtPosition As Integer _
)
'用途
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
)

參數

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

範例

使用集合