MessageDialog.Show Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Overloads
Show(String, String, MessageDialogCommandSet) |
Shows a message box. |
Show(String, String, MessageDialogCommandSet, String, Boolean) |
Shows a message box. |
Show(String, String, MessageDialogCommandSet)
Shows a message box.
public:
static Microsoft::VisualStudio::PlatformUI::MessageDialogCommand Show(System::String ^ title, System::String ^ message, Microsoft::VisualStudio::PlatformUI::MessageDialogCommandSet commandSet);
public:
static Microsoft::VisualStudio::PlatformUI::MessageDialogCommand Show(Platform::String ^ title, Platform::String ^ message, Microsoft::VisualStudio::PlatformUI::MessageDialogCommandSet commandSet);
static Microsoft::VisualStudio::PlatformUI::MessageDialogCommand Show(std::wstring const & title, std::wstring const & message, Microsoft::VisualStudio::PlatformUI::MessageDialogCommandSet commandSet);
public static Microsoft.VisualStudio.PlatformUI.MessageDialogCommand Show (string title, string message, Microsoft.VisualStudio.PlatformUI.MessageDialogCommandSet commandSet);
static member Show : string * string * Microsoft.VisualStudio.PlatformUI.MessageDialogCommandSet -> Microsoft.VisualStudio.PlatformUI.MessageDialogCommand
Public Shared Function Show (title As String, message As String, commandSet As MessageDialogCommandSet) As MessageDialogCommand
Parameters
- title
- String
The title of the dialog.
- message
- String
The message of the dialog.
- commandSet
- MessageDialogCommandSet
A value indicating what commands are available in the dialog.
Returns
A value indicating the user response in the dialog.
Applies to
Show(String, String, MessageDialogCommandSet, String, Boolean)
Shows a message box.
public:
static Microsoft::VisualStudio::PlatformUI::MessageDialogCommand Show(System::String ^ title, System::String ^ message, Microsoft::VisualStudio::PlatformUI::MessageDialogCommandSet commandSet, System::String ^ confirmationMessage, [Runtime::InteropServices::Out] bool % confirmationResponse);
public static Microsoft.VisualStudio.PlatformUI.MessageDialogCommand Show (string title, string message, Microsoft.VisualStudio.PlatformUI.MessageDialogCommandSet commandSet, string confirmationMessage, out bool confirmationResponse);
static member Show : string * string * Microsoft.VisualStudio.PlatformUI.MessageDialogCommandSet * string * bool -> Microsoft.VisualStudio.PlatformUI.MessageDialogCommand
Public Shared Function Show (title As String, message As String, commandSet As MessageDialogCommandSet, confirmationMessage As String, ByRef confirmationResponse As Boolean) As MessageDialogCommand
Parameters
- title
- String
The title of the dialog.
- message
- String
The message of the dialog.
- commandSet
- MessageDialogCommandSet
A value indicating what commands are available in the dialog.
- confirmationMessage
- String
The message for an optional confirmation.
- confirmationResponse
- Boolean
When this method returns, this parameter contains the state of the confirmation. If the user checked the confirmation, this would be true, otherwise false.
Returns
A value indicating the user response in the dialog.