VsShellUtilities::PromptYesNo Method (String^, String^, OLEMSGICON, IVsUIShell^)

 

Displays a message box that contains the specified title and prompts the user to respond (yes or no) to the specified message.

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

public:
static bool PromptYesNo(
	String^ message,
	String^ title,
	OLEMSGICON icon,
	IVsUIShell^ uiShell
)

Parameters

message
Type: System::String^

The message to which the user must respond.

title
Type: System::String^

The title of the message box.

icon
Type: Microsoft.VisualStudio.Shell.Interop::OLEMSGICON

The OLEMSGICON that defines the kind of message.

uiShell
Type: Microsoft.VisualStudio.Shell.Interop::IVsUIShell^

The IVsUIShell interface of the shell in which to display the message box.

Return Value

Type: System::Boolean

true if the operation succeeded; otherwise, false.

Return to top
Show: