You use the . . . . . . . . constant to include the Exclamation icon in a message box.

MessageBox.exclamation
MessageBox.Iconexclamation
MessageBoxIcon.Exclamation
MessageBoxWarning.Icon

The correct answer is C. MessageBoxIcon.Exclamation.

The MessageBoxIcon.Exclamation constant is used to include the Exclamation icon in a message box. The Exclamation icon is a yellow triangle with an exclamation point in the center. It is used to indicate a warning

448s170.8 0 213.4-11.5c23.5-6.3 42-24.2 48.3-47.8 11.4-42.9 11.4-132.3 11.4-132.3s0-89.4-11.4-132.3zm-317.5 213.5V175.2l142.7 81.2-142.7 81.2z"/> Subscribe on YouTube
or caution.

The other options are incorrect. MessageBox.exclamation is not a valid constant. MessageBox.Iconexclamation is a typo. MessageBoxWarning.Icon is a valid constant, but it does not include the Exclamation icon.

Exit mobile version