AlterTableAddTableElementStatement 类

添加 ALTER TABLE 语句的表元素专用化。

继承层次结构

System.Object
  Microsoft.Data.Schema.ScriptDom.Sql.TSqlFragment
    Microsoft.Data.Schema.ScriptDom.Sql.TSqlStatement
      Microsoft.Data.Schema.ScriptDom.Sql.AlterTableStatement
        Microsoft.Data.Schema.ScriptDom.Sql.AlterTableAddTableElementStatement

命名空间:  Microsoft.Data.Schema.ScriptDom.Sql
程序集:  Microsoft.Data.Schema.ScriptDom.Sql(在 Microsoft.Data.Schema.ScriptDom.Sql.dll 中)

语法

声明
<SerializableAttribute> _
Public Class AlterTableAddTableElementStatement _
    Inherits AlterTableStatement _
    Implements ITableElementContainer
[SerializableAttribute]
public class AlterTableAddTableElementStatement : AlterTableStatement, 
    ITableElementContainer
[SerializableAttribute]
public ref class AlterTableAddTableElementStatement : public AlterTableStatement, 
    ITableElementContainer
[<SerializableAttribute>]
type AlterTableAddTableElementStatement =  
    class
        inherit AlterTableStatement
        interface ITableElementContainer
    end
public class AlterTableAddTableElementStatement extends AlterTableStatement implements ITableElementContainer

AlterTableAddTableElementStatement 类型公开以下成员。

构造函数

  名称 说明
公共方法 AlterTableAddTableElementStatement 初始化 AlterTableAddTableElementStatement 类的实例。

页首

属性

  名称 说明
公共属性 ColumnDefinitions 获取列定义的列表。
公共属性 ExistingRowsCheckEnforcement 获取或设置是否对照最新添加或重新启用的 FOREIGN KEY 或 CHECK 约束来验证表中的数据。
公共属性 FirstTokenIndex 获取或设置第一个标记索引。 (继承自 TSqlFragment。)
公共属性 FragmentLength 获取片段长度。 (继承自 TSqlFragment。)
公共属性 LastTokenIndex 获取或设置最后一个标记索引。 (继承自 TSqlFragment。)
公共属性 SchemaObjectName 获取或设置架构对象名称。这最多可以是一个由两部分组成的名称。 (继承自 AlterTableStatement。)
公共属性 ScriptTokenStream 获取或设置标记流的列表。 (继承自 TSqlFragment。)
公共属性 StartColumn 获取起始列。 (继承自 TSqlFragment。)
公共属性 StartLine 获取起始行。 (继承自 TSqlFragment。)
公共属性 StartOffset 获取片段的起始偏移值。 (继承自 TSqlFragment。)
公共属性 TableConstraints 获取表约束的列表。

页首

方法

  名称 说明
公共方法 Accept 给定访问者的入口点。 (重写 TSqlFragment.Accept(TSqlFragmentVisitor)。)
公共方法 AcceptChildren 用给定访问者对子级调用 Accept。 (重写 AlterTableStatement.AcceptChildren(TSqlFragmentVisitor)。)
公共方法 Equals 确定指定的 Object 是否等于当前的 Object。 (继承自 Object。)
受保护的方法 Finalize 允许对象在“垃圾回收”回收之前尝试释放资源并执行其他清理操作。 (继承自 Object。)
公共方法 GetHashCode 用作特定类型的哈希函数。 (继承自 Object。)
公共方法 GetType 获取当前实例的 Type。 (继承自 Object。)
受保护的方法 MemberwiseClone 创建当前 Object 的浅表副本。 (继承自 Object。)
公共方法 ToString 返回表示当前对象的字符串。 (继承自 Object。)

页首

备注

表具有列和约束定义。

线程安全

此类型的任何公共 static(在 Visual Basic 中为 Shared) 成员都是线程安全的。但不保证所有实例成员都是线程安全的。

请参见

参考

Microsoft.Data.Schema.ScriptDom.Sql 命名空间