MessageDialog.Show Method

Definition

Overloads

Show(String, String, MessageDialogCommandSet)

Shows a message box.

public:
 static Microsoft::VisualStudio::PlatformUI::MessageDialogCommand Show(Platform::String ^ title, Platform::String ^ message, Microsoft::VisualStudio::PlatformUI::MessageDialogCommandSet commandSet);

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);

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.

Applies to