Kommentar
Åtkomst till den här sidan kräver auktorisering. Du kan prova att logga in eller ändra kataloger.
Åtkomst till den här sidan kräver auktorisering. Du kan prova att ändra kataloger.
Helper method to show a message box within the shell.
Namespace: Microsoft.VisualStudio.Modeling.Shell
Assembly: Microsoft.VisualStudio.Modeling.Sdk.Shell.11.0 (in Microsoft.VisualStudio.Modeling.Sdk.Shell.11.0.dll)
Syntax
'Declaration
Public Shared Function ShowMessageBox ( _
serviceProvider As IServiceProvider, _
messageText As String, _
messageButtons As OLEMSGBUTTON, _
defaultButton As OLEMSGDEFBUTTON, _
messageIcon As OLEMSGICON _
) As DialogResult
public static DialogResult ShowMessageBox(
IServiceProvider serviceProvider,
string messageText,
OLEMSGBUTTON messageButtons,
OLEMSGDEFBUTTON defaultButton,
OLEMSGICON messageIcon
)
public:
static DialogResult ShowMessageBox(
IServiceProvider^ serviceProvider,
String^ messageText,
OLEMSGBUTTON messageButtons,
OLEMSGDEFBUTTON defaultButton,
OLEMSGICON messageIcon
)
static member ShowMessageBox :
serviceProvider:IServiceProvider *
messageText:string *
messageButtons:OLEMSGBUTTON *
defaultButton:OLEMSGDEFBUTTON *
messageIcon:OLEMSGICON -> DialogResult
public static function ShowMessageBox(
serviceProvider : IServiceProvider,
messageText : String,
messageButtons : OLEMSGBUTTON,
defaultButton : OLEMSGDEFBUTTON,
messageIcon : OLEMSGICON
) : DialogResult
Parameters
- serviceProvider
Type: IServiceProvider
messageText
Type: StringText to show.
messageButtons
Type: Microsoft.VisualStudio.Shell.Interop.OLEMSGBUTTONButtons which should appear in the dialog.
defaultButton
Type: Microsoft.VisualStudio.Shell.Interop.OLEMSGDEFBUTTONDefault button (invoked when user presses return).
messageIcon
Type: Microsoft.VisualStudio.Shell.Interop.OLEMSGICONIcon (warning, error, informational, etc.) to display
Return Value
Type: DialogResult
.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.