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.
Property | Description |
---|---|
Errors | Gets the collection of messages sent from server. |
Message | Gets the text describing the message. |
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.