Udostępnij przez


ConnectionManager.ServerMessage Event

The event that occurs when SQL Server returns a warning or informational message on the current connection.

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

Syntax

'Deklaracja
Public Event ServerMessage As ServerMessageEventHandler
public event ServerMessageEventHandler ServerMessage
public:
event ServerMessageEventHandler^ ServerMessage {
    void add (ServerMessageEventHandler^ value);
    void remove (ServerMessageEventHandler^ value);
}
/** @event */
public void add_ServerMessage (ServerMessageEventHandler value)

/** @event */
public void remove_ServerMessage (ServerMessageEventHandler value)
JScript supports the use of events, but not the declaration of new ones.

Remarks

The event is handled by the ServerMessageEventHandler delegate.

Platforms

Development Platforms

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

Target Platforms

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