Share via


SqlStudioMessageBox.Show Method (IWin32Window, Exception)

Displays a message box in front of the specified object and displays the exception that is thrown when an error occurs during application execution.

Namespace:  Microsoft.SqlServer.Management.Controls
Assembly:  Microsoft.SqlServer.Management.Controls (in Microsoft.SqlServer.Management.Controls.dll)

Syntax

'Declaration
Public Shared Function Show ( _
    owner As IWin32Window, _
    error As Exception _
) As DialogResult
'Usage
Dim owner As IWin32Window
Dim error As Exception
Dim returnValue As DialogResult

returnValue = SqlStudioMessageBox.Show(owner, error)
public static DialogResult Show(
    IWin32Window owner,
    Exception error
)
public:
static DialogResult Show(
    IWin32Window^ owner, 
    Exception^ error
)
static member Show : 
        owner:IWin32Window * 
        error:Exception -> DialogResult 
public static function Show(
    owner : IWin32Window, 
    error : Exception
) : DialogResult

Parameters

  • error
    Type: System.Exception
    Represents an error that occurs during application execution.

Return Value

Type: System.Windows.Forms.DialogResult
One of the DialogResult values.