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

Public MustOverride Event MessageReceived As DataConnectionMessageReceivedEventHandler

Dim instance As DataConnection
Dim handler As DataConnectionMessageReceivedEventHandler

AddHandler instance.MessageReceived, handler
public abstract event DataConnectionMessageReceivedEventHandler MessageReceived
public:
virtual  event DataConnectionMessageReceivedEventHandler^ MessageReceived {
    void add (DataConnectionMessageReceivedEventHandler^ value);
    void remove (DataConnectionMessageReceivedEventHandler^ value);
}
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.

Permissions

See Also

Reference

DataConnection Class

DataConnection Members

Microsoft.VisualStudio.Data Namespace