Partager via


Interface IForeignKeyConstraint

Represents a SQL Server FOREIGN KEY constraint.

Espace de noms :  Microsoft.SqlServer.Management.SqlParser.Metadata
Assembly :  Microsoft.SqlServer.Management.SqlParser (en Microsoft.SqlServer.Management.SqlParser.dll)

Syntaxe

'Déclaration
Public Interface IForeignKeyConstraint _
    Inherits IConstraint, IMetadataObject
'Utilisation
Dim instance As IForeignKeyConstraint
public interface IForeignKeyConstraint : IConstraint, 
    IMetadataObject
public interface class IForeignKeyConstraint : IConstraint, 
    IMetadataObject
type IForeignKeyConstraint =  
    interface
        interface IConstraint
        interface IMetadataObject
    end
public interface IForeignKeyConstraint extends IConstraint, IMetadataObject

Le type IForeignKeyConstraint expose les membres suivants.

Propriétés

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

Haut de la page

Méthodes

  Nom Description
Méthode publique Accept< (Of < <' (T> ) > > ) Accepts a visit from the specified IMetadataObjectVisitor<(Of <(<'T>)>)> object. (hérité de IMetadataObject.)

Haut de la page