Udostępnij za pośrednictwem


Metoda PackageUtility.ShowMessageBox — (IServiceProvider, String, String, OLEMSGBUTTON, OLEMSGDEFBUTTON, OLEMSGICON)

Metody pomocnika, aby wyświetlić okno komunikatu z powłoki.

Przestrzeń nazw:  Microsoft.VisualStudio.Modeling.Shell
Zestaw:  Microsoft.VisualStudio.Modeling.Sdk.Shell.11.0 (w Microsoft.VisualStudio.Modeling.Sdk.Shell.11.0.dll)

Składnia

'Deklaracja
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
)

Parametry

Wartość zwracana

Typ: System.Windows.Forms.DialogResult

Zabezpieczenia programu .NET Framework

Zobacz też

Informacje

PackageUtility Klasa

Przeciążenie ShowMessageBox

Przestrzeń nazw Microsoft.VisualStudio.Modeling.Shell