다음을 통해 공유


PackageUtility.ShowMessageBox Method

Definition

Overloads

ShowMessageBox(IServiceProvider, String)

Helper method to show a message box within the shell. Defaults to showing only an OK button.

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

Helper method to show a message box within the shell.

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

Helper method to show a message box within the shell.

ShowMessageBox(IServiceProvider, String)

Helper method to show a message box within the shell. Defaults to showing only an OK button.

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)

Parameters

serviceProvider
IServiceProvider
messageText
String

Applies to

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

Helper method to show a message box within the 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

Parameters

serviceProvider
IServiceProvider
messageText
String

Text to show.

messageButtons
OLEMSGBUTTON

Buttons which should appear in the dialog.

defaultButton
OLEMSGDEFBUTTON

Default button (invoked when user presses return).

messageIcon
OLEMSGICON

Icon (warning, error, informational, etc.) to display

Returns

result corresponding to the button clicked by the user.

Applies to

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

Helper method to show a message box within the 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

Parameters

serviceProvider
IServiceProvider
messageText
String

Text to show.

f1Keyword
String

F1-keyword.

messageButtons
OLEMSGBUTTON

Buttons which should appear in the dialog.

defaultButton
OLEMSGDEFBUTTON

Default button (invoked when user presses return).

messageIcon
OLEMSGICON

Icon (warning, error, informational, etc.) to display

Returns

result corresponding to the button clicked by the user.

Applies to