ForeignKeyCollection.Remove ForeignKeyCollection.Remove ForeignKeyCollection.Remove Method

Definition

Removes a ForeignKey object from the ForeignKeyCollection collection.

Overloads

Remove(ForeignKey) Remove(ForeignKey)

Removes a ForeignKey object from the foreign key collection.

Remove(String) Remove(String) Remove(String)

Removes a ForeignKey object from the foreign key collection.

Remove(ForeignKey) Remove(ForeignKey)

Removes a ForeignKey object from the foreign key collection.

public:
 void Remove(Microsoft::SqlServer::Management::Smo::ForeignKey ^ foreignKey);
public void Remove (Microsoft.SqlServer.Management.Smo.ForeignKey foreignKey);
Parameters
foreignKey
ForeignKey ForeignKey ForeignKey

A ForeignKey object value that specifies the foreign key to be removed from the foreign key collection.

Examples

Using Collections

Remove(String) Remove(String) Remove(String)

Removes a ForeignKey object from the foreign key collection.

public:
 void Remove(System::String ^ name);
public void Remove (string name);
Public Sub Remove (name As String)
Parameters
name
String String String

A String value that specifies the name of foreign key to be removed from the foreign key collection.

Examples

Using Collections

Applies to