UniqueConstraintDefinition 类

Represents the unique or primary key constraint. This class translates 80 syntax into 90 syntax, this should be reflected in the AST, if a differentiator is to be written.

继承层次结构

System.Object
  Microsoft.SqlServer.TransactSql.ScriptDom.TSqlFragment
    Microsoft.SqlServer.TransactSql.ScriptDom.ConstraintDefinition
      Microsoft.SqlServer.TransactSql.ScriptDom.UniqueConstraintDefinition

命名空间:  Microsoft.SqlServer.TransactSql.ScriptDom
程序集:  Microsoft.SqlServer.TransactSql.ScriptDom(在 Microsoft.SqlServer.TransactSql.ScriptDom.dll 中)

语法

声明
<SerializableAttribute> _
Public Class UniqueConstraintDefinition _
    Inherits ConstraintDefinition
用法
Dim instance As UniqueConstraintDefinition
[SerializableAttribute]
public class UniqueConstraintDefinition : ConstraintDefinition
[SerializableAttribute]
public ref class UniqueConstraintDefinition : public ConstraintDefinition
[<SerializableAttribute>]
type UniqueConstraintDefinition =  
    class 
        inherit ConstraintDefinition 
    end
public class UniqueConstraintDefinition extends ConstraintDefinition

UniqueConstraintDefinition 类型公开以下成员。

构造函数

  名称 说明
公共方法 UniqueConstraintDefinition Initializes a new instance of the UniqueConstraintDefinition class.

页首

属性

  名称 说明
公共属性 Clustered Gets or sets a value that indicates whether the constraint is clustered.
公共属性 Columns Gets a list of constraint columns.
公共属性 ConstraintIdentifier Gets the name of the constraint. (从 ConstraintDefinition 继承。)
公共属性 FileStreamOn Gets or sets an optional specification of the file stream. It can be either Identifier or String literal.
公共属性 FirstTokenIndex Gets or sets the first token index. (从 TSqlFragment 继承。)
公共属性 FragmentLength Gets the fragment length. (从 TSqlFragment 继承。)
公共属性 IndexOptions Gets a list of index options.
公共属性 IsPrimaryKey Gets or sets whether the constraint is both unique and a primary key.
公共属性 LastTokenIndex Gets or sets the last token index. (从 TSqlFragment 继承。)
公共属性 OnFileGroupOrPartitionScheme Gets or sets the file group or partition scheme. It might be nullnull 引用(在 Visual Basic 中为 Nothing).
公共属性 ScriptTokenStream Gets or sets a list of token streams. (从 TSqlFragment 继承。)
公共属性 StartColumn Gets the starting column. (从 TSqlFragment 继承。)
公共属性 StartLine Gets the starting line. (从 TSqlFragment 继承。)
公共属性 StartOffset Gets the fragment start offset value. (从 TSqlFragment 继承。)

页首

方法

  名称 说明
公共方法 Accept Indicates the entry point for a given visitor. (覆盖 TSqlFragment.Accept(TSqlFragmentVisitor)。)
公共方法 AcceptChildren Calls Accept on the children with the given visitor. (覆盖 ConstraintDefinition.AcceptChildren(TSqlFragmentVisitor)。)
公共方法 Equals (从 Object 继承。)
受保护方法 Finalize (从 Object 继承。)
公共方法 GetHashCode (从 Object 继承。)
公共方法 GetType (从 Object 继承。)
受保护方法 MemberwiseClone (从 Object 继承。)
公共方法 ToString (从 Object 继承。)

页首

线程安全

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

请参阅

参考

Microsoft.SqlServer.TransactSql.ScriptDom 命名空间