ForeignKeyCollection.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
)
参数
- foreignKey
类型:Microsoft.SqlServer.Management.Smo.ForeignKey
A ForeignKey object value that is to be added into the foreign key collection.