PackageUtility.ShowMessageBox 方法

定义

重载

ShowMessageBox(IServiceProvider, String)

用于在 shell 内显示消息框的帮助器方法。 默认情况下,仅显示 "确定" 按钮。

ShowMessageBox(IServiceProvider, String, OLEMSGBUTTON, OLEMSGDEFBUTTON, OLEMSGICON)

用于在 shell 内显示消息框的帮助器方法。

ShowMessageBox(IServiceProvider, String, String, OLEMSGBUTTON, OLEMSGDEFBUTTON, OLEMSGICON)

用于在 shell 内显示消息框的帮助器方法。

ShowMessageBox(IServiceProvider, String)

用于在 shell 内显示消息框的帮助器方法。 默认情况下,仅显示 "确定" 按钮。

public:
 static void ShowMessageBox(IServiceProvider ^ serviceProvider, System::String ^ messageText);
public static void ShowMessageBox (IServiceProvider serviceProvider, string messageText);
static member ShowMessageBox : IServiceProvider * string -> unit
Public Shared Sub ShowMessageBox (serviceProvider As IServiceProvider, messageText As String)

参数

serviceProvider
IServiceProvider
messageText
String

适用于

ShowMessageBox(IServiceProvider, String, OLEMSGBUTTON, OLEMSGDEFBUTTON, OLEMSGICON)

用于在 shell 内显示消息框的帮助器方法。

public:
 static System::Windows::Forms::DialogResult ShowMessageBox(IServiceProvider ^ serviceProvider, System::String ^ messageText, Microsoft::VisualStudio::Shell::Interop::OLEMSGBUTTON messageButtons, Microsoft::VisualStudio::Shell::Interop::OLEMSGDEFBUTTON defaultButton, Microsoft::VisualStudio::Shell::Interop::OLEMSGICON messageIcon);
public static System.Windows.Forms.DialogResult ShowMessageBox (IServiceProvider serviceProvider, string messageText, Microsoft.VisualStudio.Shell.Interop.OLEMSGBUTTON messageButtons, Microsoft.VisualStudio.Shell.Interop.OLEMSGDEFBUTTON defaultButton, Microsoft.VisualStudio.Shell.Interop.OLEMSGICON messageIcon);
static member ShowMessageBox : IServiceProvider * string * Microsoft.VisualStudio.Shell.Interop.OLEMSGBUTTON * Microsoft.VisualStudio.Shell.Interop.OLEMSGDEFBUTTON * Microsoft.VisualStudio.Shell.Interop.OLEMSGICON -> System.Windows.Forms.DialogResult
Public Shared Function ShowMessageBox (serviceProvider As IServiceProvider, messageText As String, messageButtons As OLEMSGBUTTON, defaultButton As OLEMSGDEFBUTTON, messageIcon As OLEMSGICON) As DialogResult

参数

serviceProvider
IServiceProvider
messageText
String

要显示的文本。

messageButtons
OLEMSGBUTTON

应显示在对话框中的按钮。

defaultButton
OLEMSGDEFBUTTON

用户按下 "返回) 时 (调用默认按钮。

messageIcon
OLEMSGICON

要显示的图标 (警告、错误、信息等 )

返回

DialogResult

与用户单击的按钮对应的结果。

适用于

ShowMessageBox(IServiceProvider, String, String, OLEMSGBUTTON, OLEMSGDEFBUTTON, OLEMSGICON)

用于在 shell 内显示消息框的帮助器方法。

public:
 static System::Windows::Forms::DialogResult ShowMessageBox(IServiceProvider ^ serviceProvider, System::String ^ messageText, System::String ^ f1Keyword, Microsoft::VisualStudio::Shell::Interop::OLEMSGBUTTON messageButtons, Microsoft::VisualStudio::Shell::Interop::OLEMSGDEFBUTTON defaultButton, Microsoft::VisualStudio::Shell::Interop::OLEMSGICON messageIcon);
public static System.Windows.Forms.DialogResult ShowMessageBox (IServiceProvider serviceProvider, string messageText, string f1Keyword, Microsoft.VisualStudio.Shell.Interop.OLEMSGBUTTON messageButtons, Microsoft.VisualStudio.Shell.Interop.OLEMSGDEFBUTTON defaultButton, Microsoft.VisualStudio.Shell.Interop.OLEMSGICON messageIcon);
static member ShowMessageBox : IServiceProvider * string * string * Microsoft.VisualStudio.Shell.Interop.OLEMSGBUTTON * Microsoft.VisualStudio.Shell.Interop.OLEMSGDEFBUTTON * Microsoft.VisualStudio.Shell.Interop.OLEMSGICON -> System.Windows.Forms.DialogResult
Public Shared Function ShowMessageBox (serviceProvider As IServiceProvider, messageText As String, f1Keyword As String, messageButtons As OLEMSGBUTTON, defaultButton As OLEMSGDEFBUTTON, messageIcon As OLEMSGICON) As DialogResult

参数

serviceProvider
IServiceProvider
messageText
String

要显示的文本。

f1Keyword
String

F1 关键字。

messageButtons
OLEMSGBUTTON

应显示在对话框中的按钮。

defaultButton
OLEMSGDEFBUTTON

用户按下 "返回) 时 (调用默认按钮。

messageIcon
OLEMSGICON

要显示的图标 (警告、错误、信息等 )

返回

DialogResult

与用户单击的按钮对应的结果。

适用于