StatementEventHandler Delegado
The StatementEventHandler class represents the method that handles the event raised by a statement.
Espacio de nombres: Microsoft.SqlServer.Management.Common
Ensamblado: Microsoft.SqlServer.ConnectionInfo (en Microsoft.SqlServer.ConnectionInfo.dll)
Sintaxis
'Declaración
Public Delegate Sub StatementEventHandler ( _
sender As Object, _
e As StatementEventArgs _
)
'Uso
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 admite el uso de delegados, pero no la declaración de otros nuevos.
Parámetros
- sender
Tipo: System. . :: . .Object
An Object system object value that specifies the object that raised the event.
- e
Tipo: Microsoft.SqlServer.Management.Common. . :: . .StatementEventArgs
An StatementEventArgs value that specifies the arguments passed to the event handler.
Vea también