dotConnect for SQL Server Documentation
Devart.Data.SqlServer Namespace / SqlConnection Class / InfoMessage Event

In This Topic
    InfoMessage Event
    In This Topic
    Occurs when SQL Server returns a warning or informational message.
    Syntax
    'Declaration
     
    Public Event InfoMessage As SqlInfoMessageEventHandler
    public event SqlInfoMessageEventHandler InfoMessage
    Event Data

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

    PropertyDescription
    Gets the collection of warnings sent from the server.  
    Gets the text describing the error.  
    Gets the name of the object that generated the error.  
    Remarks

    Clients that want to process warnings or informational messages sent by the server should create a SqlInfoMessageEventHandler delegate to listen to this event.

    See Also