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
- serviceProvider
Type: System.IServiceProvider
The service provider.
- errorText
Type: System.String
Text to display.
- f1Keyword
Type: System.String
F1-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.