SqlCeConnection.InfoMessage Event

Occurs when the .NET Compact Framework Data Provider for SQL Server sends a warning or an informational message.

Namespace:  System.Data.SqlServerCe
Assembly:  System.Data.SqlServerCe (in System.Data.SqlServerCe.dll)


Public Event InfoMessage As SqlCeInfoMessageEventHandler
Dim instance As SqlCeConnection
Dim handler As SqlCeInfoMessageEventHandler

AddHandler instance.InfoMessage, handler
public event SqlCeInfoMessageEventHandler InfoMessage
 event SqlCeInfoMessageEventHandler^ InfoMessage {
    void add (SqlCeInfoMessageEventHandler^ value);
    void remove (SqlCeInfoMessageEventHandler^ value);
member InfoMessage : IEvent<SqlCeInfoMessageEventHandler,
JScript supports the use of events, but not the declaration of new ones.


Clients that want to process warnings or informational messages sent by the server should create a SqlCeInfoMessageEventHandler delegate to listen to this event.

The InfoMessage event fires when a message with low severity is returned by SQL Server Compact. Messages that raise an error cause the connection to close.

See Also


SqlCeConnection Class

System.Data.SqlServerCe Namespace