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.12.0 (in Microsoft.VisualStudio.Modeling.Sdk.Shell.12.0.dll)
Syntax
'Declaration
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
serviceProvider
Type: System.IServiceProviderThe service provider.
errorText
Type: System.StringText to display.
f1Keyword
Type: System.StringF1-keyword.
.NET Framework Security
- Full trust for the immediate caller. This member cannot be used by partially trusted code. For more information, see Using Libraries from Partially Trusted Code.