Constructor MessageBoxEventArgs
MessageBoxEventArgs(string, IWin32Window?, string?, MessageBoxButtons, MessageBoxIcon)
Initializes a new instance of the MessageBoxEventArgs class with specified parameters.
public MessageBoxEventArgs(string message, IWin32Window? owner, string? caption, MessageBoxButtons buttons, MessageBoxIcon icon)
Parameters
message
stringThe text to display in the message box.
owner
IWin32WindowAn implementation of IWin32Window that will own the message box dialog.
caption
stringThe text to display in the title bar of the message box.
buttons
MessageBoxButtonsOne of the MessageBoxButtons values that specifies which buttons to display in the message box.
icon
MessageBoxIconOne of the MessageBoxIcon values that specifies which icon to display in the message box.
MessageBoxEventArgs(string, Window?, string?, MessageBoxButtons, MessageBoxIcon)
public MessageBoxEventArgs(string message, Window? owner, string? caption, MessageBoxButtons buttons, MessageBoxIcon icon)
Parameters
message
stringowner
Windowcaption
stringbuttons
MessageBoxButtonsicon
MessageBoxIcon