SqlStudioMessageBox.Show Method (String, MessageBoxIcon)
Displays a message box with the specified text and icon.
Namespace: Microsoft.SqlServer.Management.Controls
Assembly: Microsoft.SqlServer.Management.Controls (in Microsoft.SqlServer.Management.Controls.dll)
Syntax
'Declaration
Public Shared Function Show ( _
text As String, _
icon As MessageBoxIcon _
) As DialogResult
'Usage
Dim text As String
Dim icon As MessageBoxIcon
Dim returnValue As DialogResult
returnValue = SqlStudioMessageBox.Show(text, icon)
public static DialogResult Show(
string text,
MessageBoxIcon icon
)
public:
static DialogResult Show(
String^ text,
MessageBoxIcon icon
)
static member Show :
text:string *
icon:MessageBoxIcon -> DialogResult
public static function Show(
text : String,
icon : MessageBoxIcon
) : DialogResult
Parameters
- text
Type: System.String
The text to display in the message box.
- 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.