Класс ConstraintDefinition

Represents the base class for constraints.

Иерархия наследования

System.Object
  Microsoft.SqlServer.TransactSql.ScriptDom.TSqlFragment
    Microsoft.SqlServer.TransactSql.ScriptDom.ConstraintDefinition
      Microsoft.SqlServer.TransactSql.ScriptDom.CheckConstraintDefinition
      Microsoft.SqlServer.TransactSql.ScriptDom.DefaultConstraintDefinition
      Microsoft.SqlServer.TransactSql.ScriptDom.ForeignKeyConstraintDefinition
      Microsoft.SqlServer.TransactSql.ScriptDom.NullableConstraintDefinition
      Microsoft.SqlServer.TransactSql.ScriptDom.UniqueConstraintDefinition

Пространство имен:  Microsoft.SqlServer.TransactSql.ScriptDom
Сборка:  Microsoft.SqlServer.TransactSql.ScriptDom (в Microsoft.SqlServer.TransactSql.ScriptDom.dll)

Синтаксис

'Декларация
<SerializableAttribute> _
Public MustInherit Class ConstraintDefinition _
    Inherits TSqlFragment
'Применение
Dim instance As ConstraintDefinition
[SerializableAttribute]
public abstract class ConstraintDefinition : TSqlFragment
[SerializableAttribute]
public ref class ConstraintDefinition abstract : public TSqlFragment
[<AbstractClassAttribute>]
[<SerializableAttribute>]
type ConstraintDefinition =  
    class 
        inherit TSqlFragment 
    end
public abstract class ConstraintDefinition extends TSqlFragment

Тип ConstraintDefinition обеспечивает доступ к следующим элементам.

Конструкторы

  Имя Описание
Защищенный метод ConstraintDefinition Initializes a new instance of the ConstraintDefinition class.

В начало

Свойства

  Имя Описание
Открытое свойство ConstraintIdentifier Gets the name of the constraint.
Открытое свойство FirstTokenIndex Gets or sets the first token index. (Производный от TSqlFragment.)
Открытое свойство FragmentLength Gets the fragment length. (Производный от TSqlFragment.)
Открытое свойство LastTokenIndex Gets or sets the last token index. (Производный от TSqlFragment.)
Открытое свойство 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.)
Открытый метод AcceptChildren Accepts a visit for the Children from the specified visitor. (Переопределяет TSqlFragment.AcceptChildren(TSqlFragmentVisitor).)
Открытый метод Equals (Производный от Object.)
Защищенный метод Finalize (Производный от Object.)
Открытый метод GetHashCode (Производный от Object.)
Открытый метод GetType (Производный от Object.)
Защищенный метод MemberwiseClone (Производный от Object.)
Открытый метод ToString (Производный от Object.)

В начало

Безопасность многопоточности

Любые открытые статический (Shared в Visual Basic) элементы этого типа потокобезопасны. Потокобезопасность с элементами экземпляров не гарантируется.

См. также

Справочник

Пространство имен Microsoft.SqlServer.TransactSql.ScriptDom