PackageUtility.ShowMessageBox 方法 (IServiceProvider, String, String, OLEMSGBUTTON, OLEMSGDEFBUTTON, OLEMSGICON)

显示在 shell 中的消息框的帮助器方法。

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

语法

声明
Public Shared Function ShowMessageBox ( _
    serviceProvider As IServiceProvider, _
    messageText As String, _
    f1Keyword As String, _
    messageButtons As OLEMSGBUTTON, _
    defaultButton As OLEMSGDEFBUTTON, _
    messageIcon As OLEMSGICON _
) As DialogResult
public static DialogResult ShowMessageBox(
    IServiceProvider serviceProvider,
    string messageText,
    string f1Keyword,
    OLEMSGBUTTON messageButtons,
    OLEMSGDEFBUTTON defaultButton,
    OLEMSGICON messageIcon
)

参数

返回值

类型:System.Windows.Forms.DialogResult

.NET Framework 安全性

请参见

参考

PackageUtility 类

ShowMessageBox 重载

Microsoft.VisualStudio.Modeling.Shell 命名空间