Export (0) Print
Expand All

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)

public:
event OracleInfoMessageEventHandler^ InfoMessage {
	void add (OracleInfoMessageEventHandler^ value);
	void remove (OracleInfoMessageEventHandler^ value);
}
/** @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

Community Additions

ADD
Show:
© 2014 Microsoft