TechNet
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

NameDescription
System_CAPS_pubpropertyColumns

Gets the columns that are included in the foreign key.

System_CAPS_pubpropertyDeleteAction

Gets a ForeignKeyAction value that specifies the action taken when a row that is referenced by the foreign key is deleted.

System_CAPS_pubpropertyIsChecked

Gets a value that indicates whether the FOREIGN KEY constraint applies to new data only or also to existing data.

System_CAPS_pubpropertyIsEnabled

Gets a value that indicates whether the FOREIGN KEY constraint is enabled.

System_CAPS_pubpropertyIsSystemNamed

Gets a value that indicates whether the constraint is named by the system or by the user.(Inherited from IConstraint.)

System_CAPS_pubpropertyName

Gets the name of the metadata object.(Inherited from IMetadataObject.)

System_CAPS_pubpropertyNotForReplication

Gets a value that indicates whether the FOREIGN KEY constraint is available for replication.

System_CAPS_pubpropertyParent

Gets the ITabular object that is the parent of this object.(Inherited from IConstraint.)

System_CAPS_pubpropertyReferencedTable

Gets the ITable object that contains the primary key that is referenced by the foreign key.

System_CAPS_pubpropertyType

Gets a ConstraintType value that indicates the constraint type.(Inherited from IConstraint.)

System_CAPS_pubpropertyUpdateAction

Gets a ForeignKeyAction value that specifies the action taken when a row that is referenced by the foreign key is updated.

NameDescription
System_CAPS_pubmethodAccept<T>(IMetadataObjectVisitor<T>)

Accepts a visit from the specified IMetadataObjectVisitor<T> object.(Inherited from IMetadataObject.)

Return to top
Show:
© 2016 Microsoft