다음을 통해 공유


PackageUtility.ShowMessageBox Method (IServiceProvider, String, String, OLEMSGBUTTON, OLEMSGDEFBUTTON, OLEMSGICON)

Helper method to show a message box within the shell.

Namespace:  Microsoft.VisualStudio.Modeling.Shell
Assembly:  Microsoft.VisualStudio.Modeling.Sdk.Shell.12.0 (in Microsoft.VisualStudio.Modeling.Sdk.Shell.12.0.dll)

Syntax

'Declaration
Public Shared Function ShowMessageBox ( _
    serviceProvider As IServiceProvider, _
    messageText As String, _
    f1Keyword As String, _
    messageButtons As OLEMSGBUTTON, _
    defaultButton As OLEMSGDEFBUTTON, _
    messageIcon As OLEMSGICON _
) As DialogResult
public static DialogResult ShowMessageBox(
    IServiceProvider serviceProvider,
    string messageText,
    string f1Keyword,
    OLEMSGBUTTON messageButtons,
    OLEMSGDEFBUTTON defaultButton,
    OLEMSGICON messageIcon
)
public:
static DialogResult ShowMessageBox(
    IServiceProvider^ serviceProvider, 
    String^ messageText, 
    String^ f1Keyword, 
    OLEMSGBUTTON messageButtons, 
    OLEMSGDEFBUTTON defaultButton, 
    OLEMSGICON messageIcon
)
static member ShowMessageBox : 
        serviceProvider:IServiceProvider * 
        messageText:string * 
        f1Keyword:string * 
        messageButtons:OLEMSGBUTTON * 
        defaultButton:OLEMSGDEFBUTTON * 
        messageIcon:OLEMSGICON -> DialogResult
public static function ShowMessageBox(
    serviceProvider : IServiceProvider, 
    messageText : String, 
    f1Keyword : String, 
    messageButtons : OLEMSGBUTTON, 
    defaultButton : OLEMSGDEFBUTTON, 
    messageIcon : OLEMSGICON
) : DialogResult

Parameters

Return Value

Type: System.Windows.Forms.DialogResult

.NET Framework Security

See Also

Reference

PackageUtility Class

ShowMessageBox Overload

Microsoft.VisualStudio.Modeling.Shell Namespace