ForeignKeyConstraint::Equals Method (Object^)
.NET Framework (current version)
Gets a value indicating whether the current ForeignKeyConstraint is identical to the specified object.
Assembly: System.Data (in System.Data.dll)
Parameters
- key
-
Type:
System::Object^
The object to which this ForeignKeyConstraint is compared. Two ForeignKeyConstraint are equal if they constrain the same columns.
The following example creates a new ForeignKeyConstraint and checks it against other collection members with the Equals method before adding it to a ConstraintCollection.
.NET Framework
Available since 1.1
Available since 1.1
Show: