Share via


StatementEventHandler Delegate

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

Namespace: Microsoft.SqlServer.Management.Common
Assembly: Microsoft.SqlServer.ConnectionInfo (in microsoft.sqlserver.connectioninfo.dll)

Syntax

'Declaration
Public Delegate Sub StatementEventHandler ( _
    sender As Object, _
    e As StatementEventArgs _
)
public delegate void StatementEventHandler (
    Object sender,
    StatementEventArgs e
)
public delegate void StatementEventHandler (
    Object^ sender, 
    StatementEventArgs^ e
)
/** @delegate */
public delegate void StatementEventHandler (
    Object sender, 
    StatementEventArgs e
)
JScript supports the use of delegates, but not the declaration of new ones.

Parameters

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

Remarks

This namespace, class, or member is supported only in version 2.0 of the Microsoft .NET Framework.

Example

How to: Register Event Handlers and Subscribe to Event Handling in Visual Basic .NET

Platforms

Development Platforms

For a list of the supported platforms, see Hardware and Software Requirements for Installing SQL Server 2005.

Target Platforms

For a list of the supported platforms, see Hardware and Software Requirements for Installing SQL Server 2005.

See Also

Reference

Microsoft.SqlServer.Management.Common Namespace

Other Resources

Handling SMO Events