dotConnect for SQL Server Documentation
Devart.Data.SqlServer Namespace / SqlConnection Class / FireInfoMessageEventOnUserErrors Property

In This Topic
    FireInfoMessageEventOnUserErrors Property
    In This Topic
    Determines whether to handle errors, treated as exceptions, in the InfoMessage event handler.
    Syntax
    'Declaration
     
    Public Property FireInfoMessageEventOnUserErrors As Boolean
    public bool FireInfoMessageEventOnUserErrors {get; set;}

    Property Value

    If true, errors, previously treated as exceptions, are handled in the InfoMessage event handler; otherwise, false.
    Remarks
    Errors with a severity level of 17 or higher that cause the server to stop processing the command still produce exceptions regardless of how they are processed in the InfoMessage event handler.
    See Also