PackageUtility.ShowError Method (IServiceProvider, 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.12.0 (in Microsoft.VisualStudio.Modeling.Sdk.Shell.12.0.dll)
Syntax
'Declaration
Public Shared Sub ShowError ( _
serviceProvider As IServiceProvider, _
errorText As String _
)
public static void ShowError(
IServiceProvider serviceProvider,
string errorText
)
public:
static void ShowError(
IServiceProvider^ serviceProvider,
String^ errorText
)
static member ShowError :
serviceProvider:IServiceProvider *
errorText:string -> unit
public static function ShowError(
serviceProvider : IServiceProvider,
errorText : String
)
Parameters
serviceProvider
Type: System.IServiceProviderThe service provider.
errorText
Type: System.StringText to display.
.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.