'Declaration Public Event InfoMessage As SqlInfoMessageEventHandler
public event SqlInfoMessageEventHandler InfoMessage
Event Data
The event handler receives an argument of type SqlInfoMessageEventArgs containing data related to this event. The following SqlInfoMessageEventArgs properties provide information specific to this event.
Property | Description |
---|---|
Errors | Gets the collection of warnings sent from the server. |
Message | Gets the text describing the error. |
Source | Gets the name of the object that generated the error. |
Remarks
Clients that want to process warnings or informational messages sent by the server should create a SqlInfoMessageEventHandler 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