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

    Target Platforms: Windows 7, Windows Vista SP1 or later, Windows XP SP3, Windows Server 2008 (Server Core not supported), Windows Server 2008 R2 (Server Core supported with SP1 or later), Windows Server 2003 SP2

    See Also