Udostępnij za pośrednictwem


Metoda PackageUtility.ShowError — (IServiceProvider, String, String)

Metody pomocnika, aby wyświetlić komunikat o błędzie w powłoce.Powinno być używane zamiast MessageBox.Show();

Przestrzeń nazw:  Microsoft.VisualStudio.Modeling.Shell
Zestaw:  Microsoft.VisualStudio.Modeling.Sdk.Shell.11.0 (w Microsoft.VisualStudio.Modeling.Sdk.Shell.11.0.dll)

Składnia

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

Parametry

Zabezpieczenia programu .NET Framework

Zobacz też

Informacje

PackageUtility Klasa

Przeciążenie ShowError

Przestrzeń nazw Microsoft.VisualStudio.Modeling.Shell