Partager via


PackageUtility.ShowError, méthode (IServiceProvider, String, String)

Méthode d'assistance pour montrer un message d'erreur dans le shell.Cela doit être utilisé au lieu de MessageBox.Show () ;

Espace de noms :  Microsoft.VisualStudio.Modeling.Shell
Assembly :  Microsoft.VisualStudio.Modeling.Sdk.Shell.11.0 (dans Microsoft.VisualStudio.Modeling.Sdk.Shell.11.0.dll)

Syntaxe

'Déclaration
Public Shared Sub ShowError ( _
    serviceProvider As IServiceProvider, _
    errorText As String, _
    f1Keyword As String _
)
public static void ShowError(
    IServiceProvider serviceProvider,
    string errorText,
    string f1Keyword
)

Paramètres

Sécurité .NET Framework

Voir aussi

Référence

PackageUtility Classe

ShowError, surcharge

Microsoft.VisualStudio.Modeling.Shell, espace de noms