Délégué StatementEventHandler
The StatementEventHandler class represents the method that handles the event raised by a statement.
Espace de noms : Microsoft.SqlServer.Management.Common
Assembly : Microsoft.SqlServer.ConnectionInfo (en Microsoft.SqlServer.ConnectionInfo.dll)
Syntaxe
'Déclaration
Public Delegate Sub StatementEventHandler ( _
sender As Object, _
e As StatementEventArgs _
)
'Utilisation
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 prend en charge l'utilisation de délégués, mais pas la déclaration de nouveaux délégués.
Paramètres
- sender
Type : System. . :: . .Object
An Object system object value that specifies the object that raised the event.
- e
Type : Microsoft.SqlServer.Management.Common. . :: . .StatementEventArgs
An StatementEventArgs value that specifies the arguments passed to the event handler.
Voir aussi