Export (0) Print
Expand All

OracleConnection.InfoMessage Event

Note: This namespace, class, or member is supported only in version 1.1 of the .NET Framework.

Occurs when Oracle sends a warning or an informational message.

[Visual Basic]
Public Event InfoMessage As OracleInfoMessageEventHandler
[C#]
public event OracleInfoMessageEventHandler InfoMessage;
[C++]
public: __event OracleInfoMessageEventHandler* InfoMessage;

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

Event Data

The event handler receives an argument of type OracleInfoMessageEventArgs containing data related to this event. The following OracleInfoMessageEventArgs properties provide information specific to this event.

Property Description
Code Gets the code portion of the message as an int.
Message Gets the full text of the message sent from the database.
Source Gets the name of the object that generated the error.

Remarks

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.

Requirements

Platforms: Windows 98, Windows NT 4.0, Windows Millennium Edition, Windows 2000, Windows XP Home Edition, Windows XP Professional, Windows Server 2003 family

.NET Framework Security: 

See Also

OracleConnection Class | OracleConnection Members | System.Data.OracleClient Namespace

Show:
© 2014 Microsoft