Namespace: Microsoft.VisualStudio.Modeling.Shell
Assembly: Microsoft.VisualStudio.Modeling.Sdk.Shell (in Microsoft.VisualStudio.Modeling.Sdk.Shell.dll)
Syntax
'宣言
Public Shared Sub ShowError ( _
serviceProvider As IServiceProvider, _
errorText As String, _
f1Keyword As String _
)
'使用
Dim serviceProvider As IServiceProvider
Dim errorText As String
Dim f1Keyword As String
PackageUtility.ShowError(serviceProvider, _
errorText, f1Keyword)
public static void ShowError(
IServiceProvider serviceProvider,
string errorText,
string f1Keyword
)
public:
static void ShowError(
IServiceProvider^ serviceProvider,
String^ errorText,
String^ f1Keyword
)
public static function ShowError(
serviceProvider : IServiceProvider,
errorText : String,
f1Keyword : String
)
Parameters
- serviceProvider
Type: System.IServiceProvider
- errorText
Type: System.String
- f1Keyword
Type: System.String
Permissions
- 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.