SqlStudioMessageBox.Show Method (Exception, MessageBoxIcon)
Displays a message box with the specified icon and an 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 ( _
error As Exception, _
icon As MessageBoxIcon _
) As DialogResult
'Usage
Dim error As Exception
Dim icon As MessageBoxIcon
Dim returnValue As DialogResult
returnValue = SqlStudioMessageBox.Show(error, icon)
public static DialogResult Show(
Exception error,
MessageBoxIcon icon
)
public:
static DialogResult Show(
Exception^ error,
MessageBoxIcon icon
)
static member Show :
error:Exception *
icon:MessageBoxIcon -> DialogResult
public static function Show(
error : Exception,
icon : MessageBoxIcon
) : DialogResult
Parameters
- error
Type: System.Exception
Represents an error that occurs during application execution.
- icon
Type: System.Windows.Forms.MessageBoxIcon
One of the MessageBoxIcon values that specifies which icon to display in the message box.
Return Value
Type: System.Windows.Forms.DialogResult
One of the DialogResult values.