VsShellUtilities.PromptYesNo Method

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
Assemblies:   Microsoft.VisualStudio.Shell.9.0 (in Microsoft.VisualStudio.Shell.9.0.dll)
  Microsoft.VisualStudio.Shell.10.0 (in Microsoft.VisualStudio.Shell.10.0.dll)
  Microsoft.VisualStudio.Shell (in Microsoft.VisualStudio.Shell.dll)

Syntax

‘선언
Public Shared Function PromptYesNo ( _
    message As String, _
    title As String, _
    icon As OLEMSGICON, _
    uiShell As IVsUIShell _
) As Boolean
‘사용 방법
Dim message As String
Dim title As String
Dim icon As OLEMSGICON
Dim uiShell As IVsUIShell
Dim returnValue As Boolean

returnValue = VsShellUtilities.PromptYesNo(message, _
    title, icon, uiShell)
public static bool PromptYesNo(
    string message,
    string title,
    OLEMSGICON icon,
    IVsUIShell uiShell
)
public:
static bool PromptYesNo(
    String^ message, 
    String^ title, 
    OLEMSGICON icon, 
    IVsUIShell^ uiShell
)
static member PromptYesNo : 
        message:string * 
        title:string * 
        icon:OLEMSGICON * 
        uiShell:IVsUIShell -> bool 
public static function PromptYesNo(
    message : String, 
    title : String, 
    icon : OLEMSGICON, 
    uiShell : IVsUIShell
) : boolean

Parameters

  • message
    Type: System.String
    The message to which the user must respond.

Return Value

Type: System.Boolean
true if the operation succeeded; otherwise, false.

.NET Framework Security

See Also

Reference

VsShellUtilities Class

VsShellUtilities Members

Microsoft.VisualStudio.Shell Namespace