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