Поделиться через


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.10.0 (in Microsoft.VisualStudio.Modeling.Sdk.Shell.10.0.dll)

Syntax

'Декларация
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

.NET Framework Security

See Also

Reference

PackageUtility Class

ShowError Overload

Microsoft.VisualStudio.Modeling.Shell Namespace