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.
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.
|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.|
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.
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:
- 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