Export (0) Print
Expand All
This topic has not yet been rated - Rate this topic

OracleConnection.InfoMessage Event

Occurs when Oracle sends a warning or an informational message.

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

'Declaration
Public Event InfoMessage As OracleInfoMessageEventHandler
'Usage
Dim instance As OracleConnection
Dim handler As OracleInfoMessageEventHandler

AddHandler instance.InfoMessage, handler

/** @event */
public void add_InfoMessage (OracleInfoMessageEventHandler value)

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

In JScript, you can handle the events defined by a class, but you cannot define your own.
Not applicable.

Because the .NET Framework Data Provider for Oracle uses the Oracle Call Interface (OCI), whenever the data provider receives a Success With Info message, an InfoMessage event is generated. An example would be creating a stored procedure that contains a syntax error. The call to the ExecuteNonQuery method would succeed. However an InfoMessage event would be generated informing you of the syntax error.

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

Windows 98, Windows Server 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 Microsoft .NET Framework 3.0 is supported on Windows Vista, Microsoft Windows XP SP2, and Windows Server 2003 SP1.

.NET Framework

Supported in: 3.0, 2.0, 1.1
Did you find this helpful?
(1500 characters remaining)
Thank you for your feedback

Community Additions

ADD
Show:
© 2014 Microsoft. All rights reserved.