Freigeben über


SetVariableStatement-Klasse

Represents the set @local\_variable statement.

Vererbungshierarchie

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

Namespace:  Microsoft.SqlServer.TransactSql.ScriptDom
Assembly:  Microsoft.SqlServer.TransactSql.ScriptDom (in Microsoft.SqlServer.TransactSql.ScriptDom.dll)

Syntax

'Declaration
<SerializableAttribute> _
Public Class SetVariableStatement _
    Inherits TSqlStatement
'Usage
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

Der SetVariableStatement-Typ macht folgende Elemente verfügbar.

Konstruktoren

  Name Beschreibung
Öffentliche Methode SetVariableStatement Initializes a new instance of the SetVariableStatement class.

Zum Anfang

Eigenschaften

  Name Beschreibung
Öffentliche Eigenschaft AssignmentKind Gets or sets the assignment operator used.
Öffentliche Eigenschaft CursorDefinition Gets or sets the cursor - if not nullein NULL-Verweis (Nothing in Visual Basic), then Expression has to be nullein NULL-Verweis (Nothing in Visual Basic).
Öffentliche Eigenschaft Expression Gets or sets the expression that the variable is going to be set. Can be nullein NULL-Verweis (Nothing in Visual Basic) in case of cursor.
Öffentliche Eigenschaft FirstTokenIndex Gets or sets the first token index. (Geerbt von TSqlFragment.)
Öffentliche Eigenschaft FragmentLength Gets the fragment length. (Geerbt von TSqlFragment.)
Öffentliche Eigenschaft FunctionCallExists Gets or sets a value that indicates whether the column identifiers end with a function call.
Öffentliche Eigenschaft Identifier Gets or sets the identifier that can represent the property, field or method. Optional, may be nullein NULL-Verweis (Nothing in Visual Basic).
Öffentliche Eigenschaft LastTokenIndex Gets or sets the last token index. (Geerbt von TSqlFragment.)
Öffentliche Eigenschaft Parameters Gets or sets the parameters to the function.
Öffentliche Eigenschaft ScriptTokenStream Gets or sets a list of token streams. (Geerbt von TSqlFragment.)
Öffentliche Eigenschaft SeparatorType Gets or sets the separator.
Öffentliche Eigenschaft StartColumn Gets the starting column. (Geerbt von TSqlFragment.)
Öffentliche Eigenschaft StartLine Gets the starting line. (Geerbt von TSqlFragment.)
Öffentliche Eigenschaft StartOffset Gets the fragment start offset value. (Geerbt von TSqlFragment.)
Öffentliche Eigenschaft Variable Gets or sets the variable that is going to be set.

Zum Anfang

Methoden

  Name Beschreibung
Öffentliche Methode Accept Accepts visitor. (Überschreibt TSqlFragment.Accept(TSqlFragmentVisitor).)
Öffentliche Methode AcceptChildren Accepts visitor for Children. (Überschreibt TSqlStatement.AcceptChildren(TSqlFragmentVisitor).)
Öffentliche Methode Equals (Geerbt von Object.)
Geschützte Methode Finalize (Geerbt von Object.)
Öffentliche Methode GetHashCode (Geerbt von Object.)
Öffentliche Methode GetType (Geerbt von Object.)
Geschützte Methode MemberwiseClone (Geerbt von Object.)
Öffentliche Methode ToString (Geerbt von Object.)

Zum Anfang

Threadsicherheit

Alle öffentlichen static (Shared in Visual Basic)-Elemente dieses Typs sind Threadsicher. Für Instanzelemente wird die Threadsicherheit nicht gewährleistet.

Siehe auch

Verweis

Microsoft.SqlServer.TransactSql.ScriptDom-Namespace