共用方式為


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

若要顯示在命令介面內的錯誤訊息的 helper 方法。 這應該用而不是 MessageBox.Show()。

命名空間:  Microsoft.VisualStudio.Modeling.Shell
組件:  Microsoft.VisualStudio.Modeling.Sdk.Shell.11.0 (在 Microsoft.VisualStudio.Modeling.Sdk.Shell.11.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 命名空間