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)
Syntax
'Declaration
Public Event InfoMessage As SqlCeInfoMessageEventHandler
'Usage
Dim instance As SqlCeConnection
Dim handler As SqlCeInfoMessageEventHandler
AddHandler instance.InfoMessage, handler
public event SqlCeInfoMessageEventHandler InfoMessage
public:
event SqlCeInfoMessageEventHandler^ InfoMessage {
void add (SqlCeInfoMessageEventHandler^ value);
void remove (SqlCeInfoMessageEventHandler^ value);
}
member InfoMessage : IEvent<SqlCeInfoMessageEventHandler,
SqlCeInfoMessageEventArgs>
JScript supports the use of events, but not the declaration of new ones.
Remarks
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.