VsShellUtilities.PromptYesNo 方法

显示包含指定的标题并提示用户响应的消息框 (是/否) 指定消息。

命名空间:  Microsoft.VisualStudio.Shell
程序集:  Microsoft.VisualStudio.Shell.11.0(在 Microsoft.VisualStudio.Shell.11.0.dll 中)

语法

声明
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
)

参数

返回值

类型:System.Boolean
如果该操作成功,则为 true;否则为 false。

.NET Framework 安全性

请参见

参考

VsShellUtilities 类

Microsoft.VisualStudio.Shell 命名空间