Partager via


Classe SetStatisticsStatement

Represents the Set Statistics {...} { ON | OFF } options in the TSQL grammar.

Hiérarchie d'héritage

System.Object
  Microsoft.SqlServer.TransactSql.ScriptDom.TSqlFragment
    Microsoft.SqlServer.TransactSql.ScriptDom.TSqlStatement
      Microsoft.SqlServer.TransactSql.ScriptDom.SetOnOffStatement
        Microsoft.SqlServer.TransactSql.ScriptDom.SetStatisticsStatement

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

Syntaxe

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

Le type SetStatisticsStatement expose les membres suivants.

Constructeurs

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

Haut de la page

Propriétés

  Nom Description
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 IsOn Gets or sets whether this particular set statement is set to an ON ( true ) or OFF ( false ) state. (hérité de SetOnOffStatement.)
Propriété publique LastTokenIndex Gets or sets the last token index. (hérité de TSqlFragment.)
Propriété publique Options Gets or sets the specific set option(s) that this statement represents.
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 SetOnOffStatement.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