ForeignKeyCollection.Remove Method (ForeignKey)
Removes a ForeignKey object from the foreign key collection.
Namespace: Microsoft.SqlServer.Management.Smo
Assembly: Microsoft.SqlServer.Smo (in Microsoft.SqlServer.Smo.dll)
Syntax
'Declaration
Public Sub Remove ( _
foreignKey As ForeignKey _
)
'Usage
Dim instance As ForeignKeyCollection
Dim foreignKey As ForeignKey
instance.Remove(foreignKey)
public void Remove(
ForeignKey foreignKey
)
public:
void Remove(
ForeignKey^ foreignKey
)
member Remove :
foreignKey:ForeignKey -> unit
public function Remove(
foreignKey : ForeignKey
)
Parameters
- foreignKey
Type: Microsoft.SqlServer.Management.Smo.ForeignKey
A ForeignKey object value that specifies the foreign key to be removed from the foreign key collection.