共用方式為


IForeignKeyConstraint 介面

Represents a SQL Server FOREIGN KEY constraint.

命名空間:  Microsoft.SqlServer.Management.SqlParser.Metadata
組件:  Microsoft.SqlServer.Management.SqlParser (在 Microsoft.SqlServer.Management.SqlParser.dll 中)

語法

'宣告
Public Interface IForeignKeyConstraint _
    Inherits IConstraint, IMetadataObject
'用途
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

IForeignKeyConstraint 型別公開下列成員。

屬性

  名稱 說明
公用屬性 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. (繼承自 IConstraint。)
公用屬性 Name Gets the name of the metadata object. (繼承自 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. (繼承自 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. (繼承自 IConstraint。)
公用屬性 UpdateAction Gets a ForeignKeyAction value that specifies the action taken when a row that is referenced by the foreign key is updated.

上層

方法

  名稱 說明
公用方法 Accept< (Of < <' (T> ) > > ) Accepts a visit from the specified IMetadataObjectVisitor<(Of <(<'T>)>)> object. (繼承自 IMetadataObject。)

上層