Was this page helpful?
Your feedback about this content is important. Let us know what you think.
Additional feedback?
1500 characters remaining
Export (0) Print
Expand All

OleDbConnection.InfoMessage Event

Occurs when the provider sends a warning or an informational message.

Namespace: System.Data.OleDb
Assembly: System.Data (in system.data.dll)

public event OleDbInfoMessageEventHandler InfoMessage
/** @event */
public void add_InfoMessage (OleDbInfoMessageEventHandler value)

/** @event */
public void remove_InfoMessage (OleDbInfoMessageEventHandler value)

JScript supports the use of events, but not the declaration of new ones.

Clients that want to process warnings or informational messages sent by the server should create an OleDbInfoMessageEventHandler delegate to listen to this event.

The InfoMessage event occurs when a message with low severity is returned from the data source. Low severity messages are those that do not cause an exception. For Microsoft SQL Server, this includes error messages that have a severity of 10 or less

For more information and an example, see Working with Connection Events.

Windows 98, Windows 2000 SP4, Windows Millennium Edition, Windows Server 2003, Windows XP Media Center Edition, Windows XP Professional x64 Edition, Windows XP SP2, Windows XP Starter Edition

The .NET Framework does not support all versions of every platform. For a list of the supported versions, see System Requirements.

.NET Framework

Supported in: 2.0, 1.1, 1.0

Community Additions

ADD
Show:
© 2015 Microsoft