'Declaration Public Event Error As MySqlErrorEventHandler
public event MySqlErrorEventHandler Error
Event Data
The event handler receives an argument of type MySqlErrorEventArgs containing data related to this event. The following MySqlErrorEventArgs properties provide information specific to this event.
Property | Description |
---|---|
Code | Gets the error code. |
Message | Gets the error message. |
SqlState | Gets the five-character SQLSTATE value that describes the error. |
Remarks
Clients that want to process errors sent by the server should create a MySqlErrorEventHandler delegate to listen to this 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