Kommentar
Åtkomst till den här sidan kräver auktorisering. Du kan prova att logga in eller ändra kataloger.
Åtkomst till den här sidan kräver auktorisering. Du kan prova att ändra kataloger.
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.11.0 (in Microsoft.VisualStudio.Shell.11.0.dll)
Syntax
'Declaration
Public Shared Function PromptYesNo ( _
message As String, _
title As String, _
icon As OLEMSGICON, _
uiShell As IVsUIShell _
) As Boolean
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.StringThe message to which the user must respond.
title
Type: System.StringThe title of the message box.
icon
Type: Microsoft.VisualStudio.Shell.Interop.OLEMSGICONThe OLEMSGICON that defines the kind of message.
uiShell
Type: Microsoft.VisualStudio.Shell.Interop.IVsUIShellThe IVsUIShell interface of the shell in which to display the message box.
Return Value
Type: System.Boolean
true if the operation succeeded; otherwise, false.
.NET Framework Security
- Full trust for the immediate caller. This member cannot be used by partially trusted code. For more information, see Using Libraries from Partially Trusted Code.