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 继承。)

页首