Udostępnij za pośrednictwem


Metoda VsShellUtilities.ShowMessageBox —

Wyświetla okno komunikatu z określoną wiadomość.

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

Składnia

'Deklaracja
Public Shared Function ShowMessageBox ( _
    serviceProvider As IServiceProvider, _
    message As String, _
    title As String, _
    icon As OLEMSGICON, _
    msgButton As OLEMSGBUTTON, _
    defaultButton As OLEMSGDEFBUTTON _
) As Integer
public static int ShowMessageBox(
    IServiceProvider serviceProvider,
    string message,
    string title,
    OLEMSGICON icon,
    OLEMSGBUTTON msgButton,
    OLEMSGDEFBUTTON defaultButton
)

Parametry

Wartość zwracana

Typ: System.Int32
Jeśli metoda się powiedzie, zwraca S_OK.Jeśli nie powiedzie się, zwraca kod błędu.

Zabezpieczenia programu .NET Framework

Zobacz też

Informacje

VsShellUtilities Klasa

Przestrzeń nazw Microsoft.VisualStudio.Shell