共用方式為


ExceptionMessageBox.CustomDialogResult 屬性

Gets the clicked custom text dialog button.

命名空間:  Microsoft.SqlServer.MessageBox
組件:  Microsoft.ExceptionMessageBox (在 Microsoft.ExceptionMessageBox.dll 中)

語法

'宣告
Public ReadOnly Property CustomDialogResult As ExceptionMessageBoxDialogResult 
    Get
'用途
Dim instance As ExceptionMessageBox 
Dim value As ExceptionMessageBoxDialogResult 

value = instance.CustomDialogResult
public ExceptionMessageBoxDialogResult CustomDialogResult { get; }
public:
property ExceptionMessageBoxDialogResult CustomDialogResult {
    ExceptionMessageBoxDialogResult get ();
}
member CustomDialogResult : ExceptionMessageBoxDialogResult
function get CustomDialogResult () : ExceptionMessageBoxDialogResult

屬性值

型別:Microsoft.SqlServer.MessageBox.ExceptionMessageBoxDialogResult
A ExceptionMessageBoxDialogResult value.

備註

The CustomDialogResult property is read-only.

When the value of Buttons is Custom, the exception message box can display up to five buttons with custom button text. The ExceptionMessageBoxDialogResult enumeration, which is returned by Show, supports only three buttons. Use this property after the exception message box has been dismissed to determine which button with custom button text was clicked.

請參閱

參考

ExceptionMessageBox 類別

Microsoft.SqlServer.MessageBox 命名空間