MessageBoxResult MessageBox(string messageBoxText, string caption, MessageBoxButton button, MessageBoxImage icon)

Displays a Windows Message Box to the user.

Parameters

Name Description
messageBoxText The text to display inside of the message box
caption The text to display in the message box header
button The buttons to display on the message box
icon The icon to display on the message box

Return

A MessageBoxResult representing what action the user selected