Share via


IVsUIShell8.ShowMessageBoxEx Method

Definition

Shows a themed message box with the specified parameters.

public Microsoft.VisualStudio.Shell.Interop.ExtendedMessageBoxResult ShowMessageBoxEx (string? title, string text, string? helpTopic, Microsoft.VisualStudio.Shell.Interop.OLEMSGBUTTON buttons, Microsoft.VisualStudio.Shell.Interop.OLEMSGDEFBUTTON defaultButton, Microsoft.VisualStudio.Shell.Interop.OLEMSGICON icon, bool allowSuppression, out bool suppressed);
abstract member ShowMessageBoxEx : string * string * string * Microsoft.VisualStudio.Shell.Interop.OLEMSGBUTTON * Microsoft.VisualStudio.Shell.Interop.OLEMSGDEFBUTTON * Microsoft.VisualStudio.Shell.Interop.OLEMSGICON * bool * bool -> Microsoft.VisualStudio.Shell.Interop.ExtendedMessageBoxResult
Public Function ShowMessageBoxEx (title As String, text As String, helpTopic As String, buttons As OLEMSGBUTTON, defaultButton As OLEMSGDEFBUTTON, icon As OLEMSGICON, allowSuppression As Boolean, ByRef suppressed As Boolean) As ExtendedMessageBoxResult

Parameters

title
String

The title of the message box. If this is null, the title will be the name of the application.

text
String

The text of the message box.

helpTopic
String

The help topic. If this is not null, a Help button will be displayed in the message box.

buttons
OLEMSGBUTTON

The buttons to display.

defaultButton
OLEMSGDEFBUTTON

The default button.

icon
OLEMSGICON

The icon to display.

allowSuppression
Boolean

If true, the user will be given the option to suppress the message box in the future.

suppressed
Boolean

Indicates whether the user chose to suppress the message box in the future. If allowSuppression is false, this will always be false.

Returns

A value representing which button the user clicked to close the message box.

Applies to