VsShellUtilities.PromptYesNo(String, String, OLEMSGICON, IVsUIShell) Method

Definition

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

public:
 static bool PromptYesNo(System::String ^ message, System::String ^ title, Microsoft::VisualStudio::Shell::Interop::OLEMSGICON icon, Microsoft::VisualStudio::Shell::Interop::IVsUIShell ^ uiShell);
public:
 static bool PromptYesNo(Platform::String ^ message, Platform::String ^ title, Microsoft::VisualStudio::Shell::Interop::OLEMSGICON icon, Microsoft::VisualStudio::Shell::Interop::IVsUIShell ^ uiShell);
 static bool PromptYesNo(std::wstring const & message, std::wstring const & title, Microsoft::VisualStudio::Shell::Interop::OLEMSGICON icon, Microsoft::VisualStudio::Shell::Interop::IVsUIShell const & uiShell);
public static bool PromptYesNo (string message, string title, Microsoft.VisualStudio.Shell.Interop.OLEMSGICON icon, Microsoft.VisualStudio.Shell.Interop.IVsUIShell uiShell);
static member PromptYesNo : string * string * Microsoft.VisualStudio.Shell.Interop.OLEMSGICON * Microsoft.VisualStudio.Shell.Interop.IVsUIShell -> bool
Public Shared Function PromptYesNo (message As String, title As String, icon As OLEMSGICON, uiShell As IVsUIShell) As Boolean
Public Function PromptYesNo (message As String, title As String, icon As OLEMSGICON, uiShell As IVsUIShell) As Boolean

Parameters

message
String

The message to show.

title
String

The title of the message box.

icon
OLEMSGICON

The icon to show on the message box.

uiShell
IVsUIShell

A reference to a IVsUIShell interface.

Returns

Return true if the result is Yes, false otherwise.

Applies to