9. Understanding .NET Data Provider Connectivity : .NET Data Provider Classes : IngresInfoMessageEventArgs Class
 
Share this page                  
IngresInfoMessageEventArgs Class
The IngresInfoMessageEventArgs class provides the information on warnings from the database to the delegate method that handles the InfoMessage event.
IngresInfoMessageEventArgs Class Declaration
The IngresInfoMessageEventArgs class is declared as follows:
C#: public sealed class IngresInfoMessageEventArgs : EventArgs
VB.NET: NotInheritable Public Class IngresInfoMessageEventArgs
    Inherits EventArgs
IngresInfoMessageEventArgs Class Example
The following is an implementation of the IngresInfoMessageEventArgs class:
static void OnInfoMessage(
    Object sender, IngresInfoMessageEventArgs e)
{
    Console.WriteLine("OnInfoMessage event args: ("+
        "ErrorCode=" + e.Number +
 
        ", Errors=" + e.Errors +
        ", Message=\"" + e.Message + "\"" +
        ", Source=" + e.Source +")");
}
IngresInfoMessageEventArgs Class Properties
The following are the properties of the IngresInfoMessageEventArgs class:
Property
Accessor
Description
Errors
get
An ErrorCollection of one or more Error objects that give more detailed information on the warnings generated by the provider.
Message
get
A concatenation of all the messages in the Errors collection.
Number
get
The database-specific warning integer information returned by the Ingres database.
Source
get
Name of the data provider that generated the error. Always “Ingres.”