PackageUtility.ShowError 方法 (IServiceProvider, String, String)

要显示 shell 内的消息框可的错误方法。 应使用此项而不是 MessageBox.Show ();

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

语法

声明
Public Shared Sub ShowError ( _
    serviceProvider As IServiceProvider, _
    errorText As String, _
    f1Keyword As String _
)
public static void ShowError(
    IServiceProvider serviceProvider,
    string errorText,
    string f1Keyword
)

参数

.NET Framework 安全性

请参阅

参考

PackageUtility 类

ShowError 重载

Microsoft.VisualStudio.Modeling.Shell 命名空间