SqlStudioMessageBox Class

Displays a message box that can contain text, buttons, and symbols that inform and instruct the user.

Inheritance Hierarchy

System.Object
  Microsoft.SqlServer.Management.Controls.SqlStudioMessageBox

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

Syntax

'Declaration
Public Class SqlStudioMessageBox
'Usage
Dim instance As SqlStudioMessageBox
public class SqlStudioMessageBox
public ref class SqlStudioMessageBox
type SqlStudioMessageBox =  class end
public class SqlStudioMessageBox

The SqlStudioMessageBox type exposes the following members.

Constructors

  Name Description
Public method SqlStudioMessageBox Initializes a new instance of the SqlStudioMessageBox class.

Top

Methods

  Name Description
Public method Equals (Inherited from Object.)
Protected method Finalize (Inherited from Object.)
Public method GetHashCode (Inherited from Object.)
Public method GetType (Inherited from Object.)
Protected method MemberwiseClone (Inherited from Object.)
Public methodStatic member Show(Exception) Throws an exception when an error occurs during application execution.
Public methodStatic member Show(String) Displays a message box with the specified text.
Public methodStatic member Show(Exception, String) Displays a message with the exception that is thrown when an error occurs during application execution and the specified caption.
Public methodStatic member Show(Exception, MessageBoxButtons) Displays a message box with the specified text and buttons.
Public methodStatic member Show(Exception, MessageBoxIcon) Displays a message box with the specified icon and an exception that is thrown when an error occurs during application execution.
Public methodStatic member Show(String, String) Displays a message box with the specified text and caption.
Public methodStatic member Show(String, MessageBoxButtons) Displays a message box with the specified text and buttons.
Public methodStatic member Show(String, MessageBoxIcon) Displays a message box with the specified text and icon.
Public methodStatic member Show(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.
Public methodStatic member Show(IWin32Window, String) Displays a message box in front of the specified object and with the specified text.
Public methodStatic member Show(Exception, String, MessageBoxButtons) Displays a message box with the exception that is thrown when an error occurs during application execution and the specified caption and button.
Public methodStatic member Show(Exception, String, MessageBoxIcon) Displays a message box with the exception that is thrown when an error occurs during application execution and the specified caption and icon.
Public methodStatic member Show(Exception, MessageBoxButtons, MessageBoxIcon) Displays a message box that displays the exception that is thrown when an error occurs during application execution, and the specified button and icon.
Public methodStatic member Show(String, String, MessageBoxButtons) Displays a message box with the specified text, caption, and buttons.
Public methodStatic member Show(String, String, MessageBoxIcon) Displays a message box with the specified text, caption, and icon.
Public methodStatic member Show(String, MessageBoxButtons, MessageBoxIcon) Displays a message box with the specified text, buttons, and icon.
Public methodStatic member Show(IWin32Window, Exception, String) Displays a message box in front of the specified object. The message box displays the exception that is thrown when an error occurs during application execution and the specified caption.
Public methodStatic member Show(IWin32Window, Exception, MessageBoxButtons) Displays a message box in front of the specified object. The message box displays the exception that is thrown when an error occurs during application execution as well as the specified button.
Public methodStatic member Show(IWin32Window, Exception, MessageBoxIcon) Displays a message box in front of the specified object. The message box displays the exception that is thrown when an error occurs during application execution and the specified icon.
Public methodStatic member Show(IWin32Window, String, String) Displays a message box in front of the specified object with the specified text and caption.
Public methodStatic member Show(IWin32Window, String, MessageBoxButtons) Displays a message box in front of the specified object and with specified text and buttons.
Public methodStatic member Show(IWin32Window, String, MessageBoxIcon) Displays a message box in front of the specified object with specified text and icon.
Public methodStatic member Show(Exception, String, MessageBoxButtons, MessageBoxIcon) Displays a message box that displays the exception that is thrown when an error occurs during application execution. The message box has the specified caption, buttons and icon.
Public methodStatic member Show(Exception, String, MessageBoxIcon, MessageBoxDefaultButton) Displays a message box with the exception that is thrown when an error occurs during application execution. The message box has the specified caption, icon, and default button.
Public methodStatic member Show(Exception, MessageBoxButtons, MessageBoxIcon, MessageBoxDefaultButton) Displays a message box that displays the exception that is thrown when an error occurs during application execution. The message box has the specified buttons, icon, and default button.
Public methodStatic member Show(String, String, MessageBoxButtons, MessageBoxIcon) Displays a message box with the specified string, caption, buttons, and icon.
Public methodStatic member Show(String, String, MessageBoxIcon, MessageBoxDefaultButton) Displays a message box with the specified text, caption, icon, and default button.
Public methodStatic member Show(String, MessageBoxButtons, MessageBoxIcon, MessageBoxDefaultButton) Displays a message box with the specified text, buttons, icon, and default button.
Public methodStatic member Show(IWin32Window, Exception, String, MessageBoxButtons) Displays a message box in front of the specified object with an exception that is thrown when an error occurs during application execution. The message box has the specified caption and buttons.
Public methodStatic member Show(IWin32Window, Exception, String, MessageBoxIcon) Displays a message box in front of the specified object with an exception that is thrown when an error occurs during application execution. The message box has the specified caption and icon.
Public methodStatic member Show(IWin32Window, Exception, MessageBoxButtons, MessageBoxIcon) Displays a message box in front of the specified object with an exception that is thrown when an error occurs during application execution. The message box has the specified buttons and icon.
Public methodStatic member Show(IWin32Window, String, String, MessageBoxButtons) Displays a message box in front of the specified object with the specified text, caption, and buttons.
Public methodStatic member Show(IWin32Window, String, String, MessageBoxIcon) Displays a message box in front of the specified object with the specified text, caption, and icon.
Public methodStatic member Show(IWin32Window, String, MessageBoxButtons, MessageBoxIcon) Displays a message box in front of the specified object with the specified text, buttons, and icon.
Public methodStatic member Show(Exception, String, MessageBoxButtons, MessageBoxIcon, MessageBoxDefaultButton) Displays a message box with the exception that is thrown when an error occurs during application execution. The message box has the specified caption, buttons, icon, and default button.
Public methodStatic member Show(String, String, MessageBoxButtons, MessageBoxIcon, MessageBoxDefaultButton) Displays a message box with the specified text, caption, buttons, icon and default button.
Public methodStatic member Show(IWin32Window, Exception, String, MessageBoxButtons, MessageBoxIcon) Displays a message box in front of the specified object with the exception that is thrown when an error occurs during application execution. The message box has the specified caption, buttons, and icon.
Public methodStatic member Show(IWin32Window, Exception, String, MessageBoxIcon, MessageBoxDefaultButton) Displays a message box in front of the specified object with the exception that is thrown when an error occurs during application execution. The message box has the specified text, icon, and default button.
Public methodStatic member Show(IWin32Window, Exception, MessageBoxButtons, MessageBoxIcon, MessageBoxDefaultButton) Displays a message box in front of the specified object with the exception that is thrown when an error occurs during application execution. The message box has the specified buttons, icon, and default button.
Public methodStatic member Show(IWin32Window, String, String, MessageBoxButtons, MessageBoxIcon) Displays a message box in front of the specified object. The message box has the specified text, caption, buttons, and icon.
Public methodStatic member Show(IWin32Window, String, String, MessageBoxIcon, MessageBoxDefaultButton) Displays a message box in front of the specified object. The message box has the specified text, caption, icon, and default button.
Public methodStatic member Show(IWin32Window, String, MessageBoxButtons, MessageBoxIcon, MessageBoxDefaultButton) Displays a message box in front of the specified object. The message box has the specified text, buttons, icon, and default button.
Public methodStatic member Show(IWin32Window, Exception, String, MessageBoxButtons, MessageBoxIcon, MessageBoxDefaultButton) Displays a message box in front of the specified object and with the exception that is thrown when an error occurs during application execution. The message box has the specified text, buttons, icon, and default button.
Public methodStatic member Show(IWin32Window, String, String, MessageBoxButtons, MessageBoxIcon, MessageBoxDefaultButton) Displays a message box in front of the specified object. The message box has the specified text, caption, buttons, icon, and default button.
Public methodStatic member Show(IWin32Window, Exception, String, MessageBoxButtons, MessageBoxIcon, MessageBoxDefaultButton, String) Displays a message box in front of the specified object with the exception that is thrown when an error occurs during application execution. The message box has the specified caption, buttons, icon, default button, and uses the specified Help link.
Public methodStatic member Show(IWin32Window, String, String, MessageBoxButtons, MessageBoxIcon, MessageBoxDefaultButton, String) Displays a message box in front of the specified object. The message box has the specified text, caption, buttons, icon, default button, and uses the specified Help link.
Public methodStatic member ShowConfirmation Displays a confirmation for the message box.
Public method ToString (Inherited from Object.)

Top

Thread Safety

Any public static (Shared in Visual Basic) members of this type are thread safe. Any instance members are not guaranteed to be thread safe.