UniqueConstraintDefinition Class

Definition

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.Serializable]
public class UniqueConstraintDefinition : Microsoft.SqlServer.TransactSql.ScriptDom.ConstraintDefinition
[<System.Serializable>]
type UniqueConstraintDefinition = class
    inherit ConstraintDefinition
Public Class UniqueConstraintDefinition
Inherits ConstraintDefinition
Inheritance
UniqueConstraintDefinition
Attributes

Constructors

UniqueConstraintDefinition()

Fields

Uninitialized

Constant to indicate and uninitialized token.

(Inherited from TSqlFragment)

Properties

Clustered

Represents if the constraint is clustered.

Columns

Represents the constraint columns.

ConstraintIdentifier

The name of the constraint.

(Inherited from ConstraintDefinition)
FileStreamOn

Optional specification of the filestream. Can be either Identifier or String literal.

FirstTokenIndex

Gets or sets the first index of the token.

(Inherited from TSqlFragment)
FragmentLength

Defines the number of characters the fragment takes up in the script it was parsed.

(Inherited from TSqlFragment)
IndexOptions

The index options. Optional may have zero elements.

IndexType

The index type.

IsEnforced

Represents if the constraint is an enforced constraint.

IsPrimaryKey

Represents if the constraint is not just unique but also primary key.

LastTokenIndex

Gets or sets the last index of the token.

(Inherited from TSqlFragment)
OnFileGroupOrPartitionScheme

The filegroup or partition scheme. Might be null.

ScriptTokenStream

Gets or sets the script token stream.

(Inherited from TSqlFragment)
StartColumn

Gets the start column.

(Inherited from TSqlFragment)
StartLine

Gets the start line.

(Inherited from TSqlFragment)
StartOffset

Defines the character offset of fragments starting location in the script it was parsed.

(Inherited from TSqlFragment)

Methods

Accept(TSqlFragmentVisitor)

Accepts visitor

AcceptChildren(TSqlFragmentVisitor)

Accepts visitor for Children

Applies to