Freigeben über


PackageUtility.ShowMessageBox-Methode (IServiceProvider, String, String, OLEMSGBUTTON, OLEMSGDEFBUTTON, OLEMSGICON)

Hilfsprogrammmethode, um ein Meldungsfenster innerhalb der Shells anzuzeigen.

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
)

Parameter

Rückgabewert

Typ: System.Windows.Forms.DialogResult

.NET Framework-Sicherheit

Siehe auch

Referenz

PackageUtility Klasse

ShowMessageBox-Überladung

Microsoft.VisualStudio.Modeling.Shell-Namespace