共用方式為


Add 方法

Adds a ForeignKey object to the foreign key collection.

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

語法

'宣告
Public Sub Add ( _
    foreignKey As ForeignKey _
)
'用途
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
)

參數

範例

使用集合