DataConnection.MessageReceived Event

Event that is raised when a message is received from the data source.

Namespace:  Microsoft.VisualStudio.Data
Assembly:  Microsoft.VisualStudio.Data (in Microsoft.VisualStudio.Data.dll)

Syntax

'Declaration
Public MustOverride Event MessageReceived As DataConnectionMessageReceivedEventHandler
public abstract event DataConnectionMessageReceivedEventHandler MessageReceived
public:
virtual  event DataConnectionMessageReceivedEventHandler^ MessageReceived {
    void add (DataConnectionMessageReceivedEventHandler^ value);
    void remove (DataConnectionMessageReceivedEventHandler^ value);
}
abstract MessageReceived : IEvent<DataConnectionMessageReceivedEventHandler,
    DataConnectionMessageReceivedEventArgs>
JScript does not support events.

Remarks

Messages received from the data source are not errors, but instead potentially useful information to display to a user. For example, Microsoft SQL Server allows the use of print statements inside SQL that returns messages while code is executing.

This event is handled by the OnMessageReceived method.

.NET Framework Security

See Also

Reference

DataConnection Class

Microsoft.VisualStudio.Data Namespace