Share via


IMutableForeignKeyConstraint Interface

Represents a mutable SQL Server FOREIGN KEY constraint.

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

Syntax

'Declaration
Public Interface IMutableForeignKeyConstraint _
    Inherits IForeignKeyConstraint, IMutableConstraint, IConstraint, IMutableMetadataObject,  _
    IMetadataObject
'Usage
Dim instance As IMutableForeignKeyConstraint
public interface IMutableForeignKeyConstraint : IForeignKeyConstraint, 
    IMutableConstraint, IConstraint, IMutableMetadataObject, IMetadataObject
public interface class IMutableForeignKeyConstraint : IForeignKeyConstraint, 
    IMutableConstraint, IConstraint, IMutableMetadataObject, IMetadataObject
type IMutableForeignKeyConstraint =  
    interface 
        interface IForeignKeyConstraint 
        interface IMutableConstraint 
        interface IConstraint 
        interface IMutableMetadataObject 
        interface IMetadataObject 
    end
public interface IMutableForeignKeyConstraint extends IForeignKeyConstraint, IMutableConstraint, IConstraint, IMutableMetadataObject, IMetadataObject

The IMutableForeignKeyConstraint type exposes the following members.

Properties

  Name Description
Public property Columns Gets the columns that are included in the foreign key.
Public property DeleteAction Gets or sets a ForeignKeyAction value that specifies the action taken when a row that is referenced by the foreign key is deleted.
Public property IsChecked Gets or sets a value that indicates whether the FOREIGN KEY constraint applies to new data only or also to existing data.
Public property IsEnabled Gets or sets a value that indicates whether the FOREIGN KEY constraint is enabled.
Public property IsSystemNamed Gets or sets a value that indicates whether the constraint is named by the system or by the user. (Inherited from IMutableConstraint.)
Public property Name Gets the name of the metadata object. (Inherited from IMetadataObject.)
Public property NotForReplication Gets or sets a value that indicates whether the FOREIGN KEY constraint is available for replication.
Public property Parent Gets the ITabular object that is the parent of this object. (Inherited from IConstraint.)
Public property ReferencedTable Gets or sets the ITable object that contains the primary key that is referenced by the foreign key.
Public property Type Gets a ConstraintType value that indicates the constraint type. (Inherited from IConstraint.)
Public property UpdateAction Gets or sets a ForeignKeyAction value that specifies the action taken when the row that is referenced by the foreign key is updated.

Top

Methods

  Name Description
Public method Accept<T> Accepts a visit from the specified IMetadataObjectVisitor<T> object. (Inherited from IMetadataObject.)

Top

See Also

Reference

Microsoft.SqlServer.Management.SqlParser.Metadata Namespace