Condividi tramite


Delegato StatementEventHandler

The StatementEventHandler class represents the method that handles the event raised by a statement.

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

Sintassi

'Dichiarazione
Public Delegate Sub StatementEventHandler ( _
    sender As Object, _
    e As StatementEventArgs _
)
'Utilizzo
Dim instance As New StatementEventHandler(AddressOf HandlerMethod)
public delegate void StatementEventHandler(
    Object sender,
    StatementEventArgs e
)
public delegate void StatementEventHandler(
    Object^ sender, 
    StatementEventArgs^ e
)
type StatementEventHandler = 
    delegate of  
        sender:Object * 
        e:StatementEventArgs -> unit
JScript supporta l'utilizzo di delegati, ma non la dichiarazione di nuovi delegati.

Parametri

  • sender
    Tipo: Object
    An Object system object value that specifies the object that raised the event.

Vedere anche

Riferimento

Spazio dei nomi Microsoft.SqlServer.Management.Common

Altre risorse

Gestione degli eventi SMO