UniqueConstraintDefinition UniqueConstraintDefinition UniqueConstraintDefinition Class


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.

public ref class UniqueConstraintDefinition : Microsoft::SqlServer::TransactSql::ScriptDom::ConstraintDefinition
public class UniqueConstraintDefinition : Microsoft.SqlServer.TransactSql.ScriptDom.ConstraintDefinition
Public Class UniqueConstraintDefinition
Inherits ConstraintDefinition


UniqueConstraintDefinition() UniqueConstraintDefinition() UniqueConstraintDefinition()

Initializes a new instance of the UniqueConstraintDefinition class.


Clustered Clustered Clustered

Gets or sets a value that indicates whether the constraint is clustered.

Columns Columns Columns

Gets a list of constraint columns.

ConstraintIdentifier ConstraintIdentifier ConstraintIdentifier

Gets the name of the constraint.

(Inherited from ConstraintDefinition)
FileStreamOn FileStreamOn FileStreamOn

Gets or sets an optional specification of the file stream. It can be either Identifier or String literal.

FirstTokenIndex FirstTokenIndex FirstTokenIndex

Gets or sets the first token index.

(Inherited from TSqlFragment)
FragmentLength FragmentLength FragmentLength

Gets the fragment length.

(Inherited from TSqlFragment)
IndexOptions IndexOptions IndexOptions

Gets a list of index options.

IndexType IndexType IndexType

Gets or sets the index type.

IsPrimaryKey IsPrimaryKey IsPrimaryKey

Gets or sets whether the constraint is both unique and a primary key.

LastTokenIndex LastTokenIndex LastTokenIndex

Gets or sets the last token index.

(Inherited from TSqlFragment)
OnFileGroupOrPartitionScheme OnFileGroupOrPartitionScheme OnFileGroupOrPartitionScheme

Gets or sets the file group or partition scheme. It might be null.

ScriptTokenStream ScriptTokenStream ScriptTokenStream

Gets or sets a list of token streams.

(Inherited from TSqlFragment)
StartColumn StartColumn StartColumn

Gets the starting column.

(Inherited from TSqlFragment)
StartLine StartLine StartLine

Gets the starting line.

(Inherited from TSqlFragment)
StartOffset StartOffset StartOffset

Gets the fragment start offset value.

(Inherited from TSqlFragment)


Accept(TSqlFragmentVisitor) Accept(TSqlFragmentVisitor) Accept(TSqlFragmentVisitor)

Indicates the entry point for a given visitor.

AcceptChildren(TSqlFragmentVisitor) AcceptChildren(TSqlFragmentVisitor) AcceptChildren(TSqlFragmentVisitor)

Calls Accept on the children with the given visitor.


Uninitialized Uninitialized Uninitialized

Value is -1.

(Inherited from TSqlFragment)

Applies to