PackageUtility.ShowError Method (IServiceProvider, String, String)

Helper method to show an error message within the shell. This should be used instead of MessageBox.Show();

Namespace:  Microsoft.VisualStudio.Modeling.Shell
Assembly:  Microsoft.VisualStudio.Modeling.Sdk.Shell.10.0 (in Microsoft.VisualStudio.Modeling.Sdk.Shell.10.0.dll)

Syntax

声明
Public Shared Sub ShowError ( _
    serviceProvider As IServiceProvider, _
    errorText As String, _
    f1Keyword As String _
)
public static void ShowError(
    IServiceProvider serviceProvider,
    string errorText,
    string f1Keyword
)
public:
static void ShowError(
    IServiceProvider^ serviceProvider, 
    String^ errorText, 
    String^ f1Keyword
)
static member ShowError : 
        serviceProvider:IServiceProvider * 
        errorText:string * 
        f1Keyword:string -> unit 
public static function ShowError(
    serviceProvider : IServiceProvider, 
    errorText : String, 
    f1Keyword : String
)

Parameters

.NET Framework Security

See Also

Reference

PackageUtility Class

ShowError Overload

Microsoft.VisualStudio.Modeling.Shell Namespace