Export (0) Print
Expand All

IForeignKeyConstraint Interface

Represents a SQL Server FOREIGN KEY constraint.

Namespace:  Microsoft.SqlServer.Management.SqlParser.Metadata
Assembly:  Microsoft.SqlServer.Management.SqlParser (in Microsoft.SqlServer.Management.SqlParser.dll)

public interface IForeignKeyConstraint : IConstraint, 
	IMetadataObject

The IForeignKeyConstraint type exposes the following members.

  NameDescription
Public propertyColumnsGets the columns that are included in the foreign key.
Public propertyDeleteActionGets a ForeignKeyAction value that specifies the action taken when a row that is referenced by the foreign key is deleted.
Public propertyIsCheckedGets a value that indicates whether the FOREIGN KEY constraint applies to new data only or also to existing data.
Public propertyIsEnabledGets a value that indicates whether the FOREIGN KEY constraint is enabled.
Public propertyIsSystemNamedGets a value that indicates whether the constraint is named by the system or by the user. (Inherited from IConstraint.)
Public propertyNameGets the name of the metadata object. (Inherited from IMetadataObject.)
Public propertyNotForReplicationGets a value that indicates whether the FOREIGN KEY constraint is available for replication.
Public propertyParentGets the ITabular object that is the parent of this object. (Inherited from IConstraint.)
Public propertyReferencedTableGets the ITable object that contains the primary key that is referenced by the foreign key.
Public propertyTypeGets a ConstraintType value that indicates the constraint type. (Inherited from IConstraint.)
Public propertyUpdateActionGets a ForeignKeyAction value that specifies the action taken when a row that is referenced by the foreign key is updated.
Top

  NameDescription
Public methodAccept<T>Accepts a visit from the specified IMetadataObjectVisitor<T> object. (Inherited from IMetadataObject.)
Top
Was this page helpful?
(1500 characters remaining)
Thank you for your feedback

Community Additions

ADD
Show:
© 2014 Microsoft