Condividi tramite


Classe StatementEventArgs

The StatementEventArgs class represents the arguments used when a statement event is raised.

Gerarchia di ereditarietà

Object
  EventArgs
    Microsoft.SqlServer.Management.Common.StatementEventArgs

Spazio dei nomi  Microsoft.SqlServer.Management.Common
Assembly:  Microsoft.SqlServer.ConnectionInfo (in Microsoft.SqlServer.ConnectionInfo.dll)

Sintassi

'Dichiarazione
Public Class StatementEventArgs _
    Inherits EventArgs
'Utilizzo
Dim instance As StatementEventArgs
public class StatementEventArgs : EventArgs
public ref class StatementEventArgs : public EventArgs
type StatementEventArgs =  
    class 
        inherit EventArgs 
    end
public class StatementEventArgs extends EventArgs

Nel tipo StatementEventArgs sono esposti i membri seguenti.

Costruttori

  Nome Descrizione
Metodo pubblico StatementEventArgs Initializes a new instance of the StatementEventArgs class for the specified Transact-SQL statement at the specified time and date.

Torna all'inizio

Proprietà

  Nome Descrizione
Proprietà pubblica SqlStatement Gets the Transact-SQL statement that caused the statement event.
Proprietà pubblica TimeStamp Gets the time and date when the statement event occurred.

Torna all'inizio

Metodi

  Nome Descrizione
Metodo pubblico Equals Ereditato da Object.
Metodo protetto Finalize Ereditato da Object.
Metodo pubblico GetHashCode Ereditato da Object.
Metodo pubblico GetType Ereditato da Object.
Metodo protetto MemberwiseClone Ereditato da Object.
Metodo pubblico ToString Returns a String value that represents the StatementEventArgs object. Esegue l'override di ObjectToString.

Torna all'inizio

Osservazioni

Thread Safety

Tutti i membri statici pubblici (Shared in Microsoft Visual Basic) di questo tipo sono sicuri per le operazioni a thread multipli. Non è invece garantita la sicurezza dei membri dell'istanza.

Esempi

Gestione degli eventi SMO

Protezione dei thread

I membri static (Shared in Visual Basic) pubblici di questo tipo sono affidabili. Non è invece garantita la sicurezza dei membri dell'istanza.

Vedere anche

Riferimento

Spazio dei nomi Microsoft.SqlServer.Management.Common

Altre risorse

Gestione degli eventi SMO