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 命名空間