ExceptionMessageBoxButtons Enumeration

 

Specifies the button to display in the exception message box.

Namespace:   Microsoft.SqlServer.MessageBox
Assembly:  Microsoft.ExceptionMessageBox (in Microsoft.ExceptionMessageBox.dll)

public enum class ExceptionMessageBoxButtons

Member nameDescription
AbortRetryIgnore

Display the Abort, Retry, and Ignore buttons.

Custom

Display buttons with custom button text.

OK

Display the OK button.

OKCancel

Display the OK and Cancel buttons.

RetryCancel

Display the Retry and Cancel buttons.

YesNo

Display Yes and No buttons.

YesNoCancel

Display Yes, No, and Cancel buttons.

When you use Custom, you must call SetButtonText to set the button text before you show the message box. After the user dismisses the exception message box, call CustomDialogResult to determine which button the user clicked.

No code example is currently available or this language may not be supported.
Return to top
Show: