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
'Déclaration
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
- Full trust for the immediate caller. This member cannot be used by partially trusted code. For more information, see Using Libraries from Partially Trusted Code.