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.10.0 (in Microsoft.VisualStudio.Modeling.Sdk.Shell.10.0.dll)
Syntax
声明
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
- serviceProvider
Type: System.IServiceProvider
- messageText
Type: System.String
.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.