ServerMessageEventHandler Delegate
The ServerMessageEventHandler class represents the method that handles the event raised by a server message.
Namespace: Microsoft.SqlServer.Management.Common
Assembly: Microsoft.SqlServer.ConnectionInfo (in microsoft.sqlserver.connectioninfo.dll)
Syntax
'Declaration
Public Delegate Sub ServerMessageEventHandler ( _
sender As Object, _
e As ServerMessageEventArgs _
)
public delegate void ServerMessageEventHandler (
Object sender,
ServerMessageEventArgs e
)
public delegate void ServerMessageEventHandler (
Object^ sender,
ServerMessageEventArgs^ e
)
/** @delegate */
public delegate void ServerMessageEventHandler (
Object sender,
ServerMessageEventArgs 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.
- e
An ServerMessageEventArgs value that specifies the arguments passed to the event handler.
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