ScriptEditorControl.ShowMessage Method
Shows message box.
Namespace: Microsoft.SqlServer.Management.UI.VSIntegration.Editors
Assembly: SQLEditors.VS (in SQLEditors.VS.dll)
Syntax
'Declaration
Protected Function ShowMessage ( _
message As String, _
caption As String, _
buttons As MessageBoxButtons, _
icon As MessageBoxIcon _
) As DialogResult
'Usage
Dim message As String
Dim caption As String
Dim buttons As MessageBoxButtons
Dim icon As MessageBoxIcon
Dim returnValue As DialogResult
returnValue = Me.ShowMessage(message, _
caption, buttons, icon)
protected DialogResult ShowMessage(
string message,
string caption,
MessageBoxButtons buttons,
MessageBoxIcon icon
)
protected:
DialogResult ShowMessage(
String^ message,
String^ caption,
MessageBoxButtons buttons,
MessageBoxIcon icon
)
member ShowMessage :
message:string *
caption:string *
buttons:MessageBoxButtons *
icon:MessageBoxIcon -> DialogResult
protected function ShowMessage(
message : String,
caption : String,
buttons : MessageBoxButtons,
icon : MessageBoxIcon
) : DialogResult
Parameters
- message
Type: System.String
A string value that contains the message.
- caption
Type: System.String
A string value that contains the caption.
- buttons
Type: System.Windows.Forms.MessageBoxButtons
A MessageBoxButtons object.
- icon
Type: System.Windows.Forms.MessageBoxIcon
A MessageBoxIcon object.
Return Value
Type: System.Windows.Forms.DialogResult
A DialogResult object.