Класс SetVariableStatement

Represents the set @local\_variable statement.

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

System.Object
  Microsoft.SqlServer.TransactSql.ScriptDom.TSqlFragment
    Microsoft.SqlServer.TransactSql.ScriptDom.TSqlStatement
      Microsoft.SqlServer.TransactSql.ScriptDom.SetVariableStatement

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

Синтаксис

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

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

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

  Имя Описание
Открытый метод SetVariableStatement Initializes a new instance of the SetVariableStatement class.

В начало

Свойства

  Имя Описание
Открытое свойство AssignmentKind Gets or sets the assignment operator used.
Открытое свойство CursorDefinition Gets or sets the cursor - if not nullпустая ссылка (Nothing в Visual Basic), then Expression has to be nullпустая ссылка (Nothing в Visual Basic).
Открытое свойство Expression Gets or sets the expression that the variable is going to be set. Can be nullпустая ссылка (Nothing в Visual Basic) in case of cursor.
Открытое свойство FirstTokenIndex Gets or sets the first token index. (Производный от TSqlFragment.)
Открытое свойство FragmentLength Gets the fragment length. (Производный от TSqlFragment.)
Открытое свойство FunctionCallExists Gets or sets a value that indicates whether the column identifiers end with a function call.
Открытое свойство Identifier Gets or sets the identifier that can represent the property, field or method. Optional, may be nullпустая ссылка (Nothing в Visual Basic).
Открытое свойство LastTokenIndex Gets or sets the last token index. (Производный от TSqlFragment.)
Открытое свойство Parameters Gets or sets the parameters to the function.
Открытое свойство ScriptTokenStream Gets or sets a list of token streams. (Производный от TSqlFragment.)
Открытое свойство SeparatorType Gets or sets the separator.
Открытое свойство StartColumn Gets the starting column. (Производный от TSqlFragment.)
Открытое свойство StartLine Gets the starting line. (Производный от TSqlFragment.)
Открытое свойство StartOffset Gets the fragment start offset value. (Производный от TSqlFragment.)
Открытое свойство Variable Gets or sets the variable that is going to be set.

В начало

Методы

  Имя Описание
Открытый метод Accept Accepts visitor. (Переопределяет TSqlFragment.Accept(TSqlFragmentVisitor).)
Открытый метод AcceptChildren Accepts visitor for Children. (Переопределяет TSqlStatement.AcceptChildren(TSqlFragmentVisitor).)
Открытый метод Equals (Производный от Object.)
Защищенный метод Finalize (Производный от Object.)
Открытый метод GetHashCode (Производный от Object.)
Открытый метод GetType (Производный от Object.)
Защищенный метод MemberwiseClone (Производный от Object.)
Открытый метод ToString (Производный от Object.)

В начало

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

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

См. также

Справочник

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