dotConnect for PostgreSQL Documentation
Devart.Data.PostgreSql Namespace / PgSqlConnection Class / InfoMessage Event

InfoMessage Event
Occurs when PostgreSQL returns a warning or informational message.
Syntax
'Declaration
 
Public Event InfoMessage As PgSqlInfoMessageEventHandler
 
Event Data

The event handler receives an argument of type PgSqlInfoMessageEventArgs containing data related to this event. The following PgSqlInfoMessageEventArgs properties provide information specific to this event.

PropertyDescription
Gets the collection of messages sent from server.  
Gets the text describing the message.  
Remarks

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

This event is fired when PostgreSQL server sends a message or multiple messages with Severity other than Severity.Error. To trap the errors you should listen to the Error event.

Requirements

Target Platforms: Windows 7, Windows Vista SP1 or later, Windows XP SP3, Windows Server 2008 (Server Core not supported), Windows Server 2008 R2 (Server Core supported with SP1 or later), Windows Server 2003 SP2

See Also