MessageDialog::Show Method (String^, String^, MessageDialogCommandSet, String^, Boolean)

Visual Studio 2015
 

Shows a message box.

Namespace:   Microsoft.VisualStudio.PlatformUI
Assembly:  Microsoft.VisualStudio.Shell.14.0 (in Microsoft.VisualStudio.Shell.14.0.dll)

public:
static MessageDialogCommand Show(
	String^ title,
	String^ message,
	MessageDialogCommandSet commandSet,
	String^ confirmationMessage,
	[OutAttribute] bool% confirmationResponse
)

Parameters

title
Type: System::String^

The title of the dialog.

message
Type: System::String^

The message of the dialog.

commandSet
Type: Microsoft.VisualStudio.PlatformUI::MessageDialogCommandSet

A value indicating what commands are available in the dialog.

confirmationMessage
Type: System::String^

The message for an optional confirmation.

confirmationResponse
Type: System::Boolean

When this method returns, this parameter contains the state of the confirmation. If the user checked the confirmation, this is true, otherwise false.

Return Value

Type: Microsoft.VisualStudio.PlatformUI::MessageDialogCommand

A value indicating the user response in the dialog.

Return to top
Show: