dotConnect for PostgreSQL Documentation
InfoMessage Event
See Also  support@devart.com
Devart.Data.PostgreSql Namespace > PgSqlConnection Class : InfoMessage Event

Occurs when PostgreSQL returns a warning or informational message.

Syntax

Visual Basic (Declaration) 
Public Event InfoMessage As PgSqlInfoMessageEventHandler
C# 
public event PgSqlInfoMessageEventHandler InfoMessage

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
Errors Gets the collection of messages sent from server.
Message 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 Devart.Data.PostgreSql.Severity other than Severity.Error. To trap the errors you should listen to the PgSqlConnection.Error event.

Requirements

Platforms:Windows XP Home Edition, Windows XP Professional, Windows Server 2003 family, Windows Vista, Windows Server 2008 family, Windows 7, Windows 8, Windows 10, Windows Server 2012 family.

See Also