Classe 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.
Hierarquia de herança
System.Object
Microsoft.SqlServer.TransactSql.ScriptDom.TSqlFragment
Microsoft.SqlServer.TransactSql.ScriptDom.ConstraintDefinition
Microsoft.SqlServer.TransactSql.ScriptDom.UniqueConstraintDefinition
Namespace: Microsoft.SqlServer.TransactSql.ScriptDom
Assembly: Microsoft.SqlServer.TransactSql.ScriptDom (em Microsoft.SqlServer.TransactSql.ScriptDom.dll)
Sintaxe
'Declaração
<SerializableAttribute> _
Public Class UniqueConstraintDefinition _
Inherits ConstraintDefinition
'Uso
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
O tipo UniqueConstraintDefinition expõe os membros a seguir.
Construtores
Nome | Descrição | |
---|---|---|
UniqueConstraintDefinition | Initializes a new instance of the UniqueConstraintDefinition class. |
Início
Propriedades
Nome | Descrição | |
---|---|---|
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. (Herdado de 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. (Herdado de TSqlFragment.) | |
FragmentLength | Gets the fragment length. (Herdado de 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. (Herdado de TSqlFragment.) | |
OnFileGroupOrPartitionScheme | Gets or sets the file group or partition scheme. It might be nulluma referência nula (Nothing no Visual Basic). | |
ScriptTokenStream | Gets or sets a list of token streams. (Herdado de TSqlFragment.) | |
StartColumn | Gets the starting column. (Herdado de TSqlFragment.) | |
StartLine | Gets the starting line. (Herdado de TSqlFragment.) | |
StartOffset | Gets the fragment start offset value. (Herdado de TSqlFragment.) |
Início
Métodos
Nome | Descrição | |
---|---|---|
Accept | Indicates the entry point for a given visitor. (Substitui TSqlFragment.Accept(TSqlFragmentVisitor).) | |
AcceptChildren | Calls Accept on the children with the given visitor. (Substitui ConstraintDefinition.AcceptChildren(TSqlFragmentVisitor).) | |
Equals | (Herdado de Object.) | |
Finalize | (Herdado de Object.) | |
GetHashCode | (Herdado de Object.) | |
GetType | (Herdado de Object.) | |
MemberwiseClone | (Herdado de Object.) | |
ToString | (Herdado de Object.) |
Início
Segurança de thread
Qualquer membro público static (Shared no Visual Basic) desse tipo é seguro para threads. Não há garantia de que qualquer membro de instância seja seguro para threads.