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