InfoMessage event

Occurs when the SQL Anywhere database server returns a warning or informational message.

Syntax
Visual Basic

Public Event InfoMessage As SAInfoMessageEventHandler
C#

public event SAInfoMessageEventHandler InfoMessage ;
Remarks

The event handler receives an argument of type SaInfoMessageEventArgs containing data related to this event. The following SAaInfoMessageEventArgs properties provide information specific to this event: NativeError, Errors, Message, MessageType, and Source.

For more information, see the .NET Framework documentation for OleDbConnection.InfoMessage Event.

Event data
  • MessageType   Returns the type of the message. This can be one of: Action, Info, Status, or Warning.

  • Errors   Returns the collection of messages sent from the data source.

  • Message   Returns the full text of the error sent from the data source.

  • Source   Returns the name of the SQL Anywhere .NET Data Provider.

  • NativeError   Returns the SQL code returned by the database.

See also