Partager via


Classe SelectScalarExpression

Represents the column element that is used right after the select keyword.

Hiérarchie d'héritage

System.Object
  Microsoft.SqlServer.TransactSql.ScriptDom.TSqlFragment
    Microsoft.SqlServer.TransactSql.ScriptDom.SelectElement
      Microsoft.SqlServer.TransactSql.ScriptDom.SelectScalarExpression

Espace de noms :  Microsoft.SqlServer.TransactSql.ScriptDom
Assembly :  Microsoft.SqlServer.TransactSql.ScriptDom (en Microsoft.SqlServer.TransactSql.ScriptDom.dll)

Syntaxe

'Déclaration
<SerializableAttribute> _
Public Class SelectScalarExpression _
    Inherits SelectElement
'Utilisation
Dim instance As SelectScalarExpression
[SerializableAttribute]
public class SelectScalarExpression : SelectElement
[SerializableAttribute]
public ref class SelectScalarExpression : public SelectElement
[<SerializableAttribute>]
type SelectScalarExpression =  
    class 
        inherit SelectElement 
    end
public class SelectScalarExpression extends SelectElement

Le type SelectScalarExpression expose les membres suivants.

Constructeurs

  Nom Description
Méthode publique SelectScalarExpression Initializes a new instance of the SelectScalarExpression class.

Haut de la page

Propriétés

  Nom Description
Propriété publique ColumnName Gets or sets an Identifier or a literal of type AsciiStringLiteral or UnicodeStringLiteral. Optional, may be nullune référence Null (Nothing dans Visual Basic).
Propriété publique Expression Gets or sets a select expression that can be any expression, if this is non-null then this select expression is a regular expression. At present this AST class expresses either an expression or a wildcard. Because a SelectExpressions can do so much more, we may want to go to a derivation approach, where this class would be a base -- or there may be another more elegant approach. For now, this is a basic design to support SELECT * FROM foo.
Propriété publique FirstTokenIndex Gets or sets the first token index. (hérité de TSqlFragment.)
Propriété publique FragmentLength Gets the fragment length. (hérité de TSqlFragment.)
Propriété publique LastTokenIndex Gets or sets the last token index. (hérité de TSqlFragment.)
Propriété publique ScriptTokenStream Gets or sets a list of token streams. (hérité de TSqlFragment.)
Propriété publique StartColumn Gets the starting column. (hérité de TSqlFragment.)
Propriété publique StartLine Gets the starting line. (hérité de TSqlFragment.)
Propriété publique StartOffset Gets the fragment start offset value. (hérité de TSqlFragment.)

Haut de la page

Méthodes

  Nom Description
Méthode publique Accept Accepts visitor. (remplace TSqlFragment.Accept(TSqlFragmentVisitor).)
Méthode publique AcceptChildren Accepts visitor for Children. (remplace SelectElement.AcceptChildren(TSqlFragmentVisitor).)
Méthode publique Equals (hérité de Object.)
Méthode protégée Finalize (hérité de Object.)
Méthode publique GetHashCode (hérité de Object.)
Méthode publique GetType (hérité de Object.)
Méthode protégée MemberwiseClone (hérité de Object.)
Méthode publique ToString (hérité de Object.)

Haut de la page

Sécurité des threads

Tous les membres publics static (Shared dans Visual Basic) de ce type sont thread-safe. Tous les membres de l'instance ne sont pas garantis comme étant thread-safe.

Voir aussi

Référence

Espace de noms Microsoft.SqlServer.TransactSql.ScriptDom