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

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
defaultResult The default button selected on the message box

Return

A MessageBoxResult representing what action the user selected