다음을 통해 공유


PackageUtility.ShowMessageBox Method (IServiceProvider, String)

Helper method to show a message box within the shell. Defaults to showing only an OK button.

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 ShowMessageBox ( _
    serviceProvider As IServiceProvider, _
    messageText As String _
)
public static void ShowMessageBox(
    IServiceProvider serviceProvider,
    string messageText
)
public:
static void ShowMessageBox(
    IServiceProvider^ serviceProvider, 
    String^ messageText
)
static member ShowMessageBox : 
        serviceProvider:IServiceProvider * 
        messageText:string -> unit
public static function ShowMessageBox(
    serviceProvider : IServiceProvider, 
    messageText : String
)

Parameters

.NET Framework Security

See Also

Reference

PackageUtility Class

ShowMessageBox Overload

Microsoft.VisualStudio.Modeling.Shell Namespace