Export (0) Print
Expand All

VsShellUtilities.PromptYesNo Method

Displays a message box with the specified title that prompts the user to respond yes/no to the specified message.

This method is not CLS-compliant.  

Namespace: Microsoft.VisualStudio.Shell
Assembly: Microsoft.VisualStudio.Shell (in microsoft.visualstudio.shell.dll)

public static bool PromptYesNo (
	string message,
	string title,
	OLEMSGICON icon,
	IVsUIShell uiShell
)
public static boolean PromptYesNo (
	String message, 
	String title, 
	OLEMSGICON icon, 
	IVsUIShell uiShell
)
public static function PromptYesNo (
	message : String, 
	title : String, 
	icon : OLEMSGICON, 
	uiShell : IVsUIShell
) : boolean

Parameters

message

The message to which the user must respond.

title

The title of the message box.

icon

The OLEMSGICON that defines the type of message.

uiShell

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

Return Value

true if the operation succeeded, otherwise false.

Community Additions

ADD
Show:
© 2014 Microsoft