Share via


IVsUIShell8.ShowMessageBoxExWithHelpId Method

Definition

Shows a themed message box with the specified parameters.

public Microsoft.VisualStudio.Shell.Interop.ExtendedMessageBoxResult ShowMessageBoxExWithHelpId(string? title, string text, string? helpFile, uint helpId, 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 ShowMessageBoxExWithHelpId : string * string * string * uint32 * Microsoft.VisualStudio.Shell.Interop.OLEMSGBUTTON * Microsoft.VisualStudio.Shell.Interop.OLEMSGDEFBUTTON * Microsoft.VisualStudio.Shell.Interop.OLEMSGICON * bool * bool -> Microsoft.VisualStudio.Shell.Interop.ExtendedMessageBoxResult
Public Function ShowMessageBoxExWithHelpId (title As String, text As String, helpFile As String, helpId As UInteger, 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.

helpFile
String

The help file.

helpId
UInt32

The help identifier.

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