Nevron Open Vision Documentation
Nevron.Nov.UI Namespace / NErrorDialog Class / Show Method / Show(NWindow,String,String,Exception) Method


In This Topic
    Show(NWindow,String,String,Exception) Method
    In This Topic
    Shows an error dialog for the given exception.
    Syntax
    'Declaration
     
    
    Public Overloads Shared Function Show( _
       ByVal ownerWindow As NWindow, _
       ByVal windowTitle As System.String, _
       ByVal header As System.String, _
       ByVal exception As System.Exception _
    ) As NPromise(Of ENTaskDialogButton)
    'Usage
     
    
    Dim ownerWindow As NWindow
    Dim windowTitle As System.String
    Dim header As System.String
    Dim exception As System.Exception
    Dim value As NPromise(Of ENTaskDialogButton)
     
    value = NErrorDialog.Show(ownerWindow, windowTitle, header, exception)
    public static NPromise<ENTaskDialogButton> Show( 
       NWindow ownerWindow,
       System.string windowTitle,
       System.string header,
       System.Exception exception
    )

    Parameters

    ownerWindow
    windowTitle
    header
    exception
    Remarks
    This method always shows the error dialog on the UI thread, i.e. if the currently executing code is not on the UI thread, this method automatically calls NApplication.BeginInvoke to show the error dialog on the UI thread.
    Requirements

    Target Platforms: Windows 11, Windows 10, Windows 7, Windows Server 2019, Windows Server 2016, Windows Server 2012 R2, Windows Server 2012, Windows Server 2008 (Server Core not supported), Windows Server 2008 R2 (Server Core supported with SP1 or later)

    See Also