IForeignKeyConstraint Interface
Represents a SQL Server FOREIGN KEY constraint.
Assembly: Microsoft.SqlServer.Management.SqlParser (in Microsoft.SqlServer.Management.SqlParser.dll)
| Name | Description | |
|---|---|---|
![]() | Columns | Gets the columns that are included in the foreign key. |
![]() | DeleteAction | Gets a ForeignKeyAction value that specifies the action taken when a row that is referenced by the foreign key is deleted. |
![]() | IsChecked | Gets a value that indicates whether the FOREIGN KEY constraint applies to new data only or also to existing data. |
![]() | IsEnabled | Gets a value that indicates whether the FOREIGN KEY constraint is enabled. |
![]() | IsSystemNamed | Gets a value that indicates whether the constraint is named by the system or by the user.(Inherited from IConstraint.) |
![]() | Name | Gets the name of the metadata object.(Inherited from IMetadataObject.) |
![]() | NotForReplication | Gets a value that indicates whether the FOREIGN KEY constraint is available for replication. |
![]() | Parent | Gets the ITabular object that is the parent of this object.(Inherited from IConstraint.) |
![]() | ReferencedTable | Gets the ITable object that contains the primary key that is referenced by the foreign key. |
![]() | Type | Gets a ConstraintType value that indicates the constraint type.(Inherited from IConstraint.) |
![]() | UpdateAction | Gets a ForeignKeyAction value that specifies the action taken when a row that is referenced by the foreign key is updated. |
| Name | Description | |
|---|---|---|
![]() | Accept<T>(IMetadataObjectVisitor<T>^) | Accepts a visit from the specified IMetadataObjectVisitor<T> object.(Inherited from IMetadataObject.) |

