ExceptionMessageBox.SetButtonText 方法

包括受保护的成员
包括继承的成员

Sets the text for custom text buttons.

此成员被重载。有关此成员的完整信息,包括语法、用法和示例,请单击重载列表中的名称。

重载列表

  名称 说明
公共方法 SetButtonText(String) Sets the text for the custom text button when only one button is displayed in the exception message box.
公共方法 SetButtonText(String, String) Sets the text for the custom text buttons when only two buttons are displayed in the exception message box.
公共方法 SetButtonText(String, String, String) Sets the text for the custom text buttons when only three buttons are displayed in the exception message box.
公共方法 SetButtonText(String, String, String, String) Sets the text for the custom text buttons when only four buttons are displayed in the exception message box.
公共方法 SetButtonText(String, String, String, String, String) Sets the text for the custom text buttons when only five buttons are displayed in the exception message box.

页首

注释

Custom text buttons are used when Buttons is set to Custom.

The number of button text strings provided determines the number of custom text buttons displayed. The buttons are displayed in the order in which the strings are specified.

After the message box has been dismissed, use CustomDialogResult to determine which button was clicked.

请参阅

参考

ExceptionMessageBox 类

Microsoft.SqlServer.MessageBox 命名空间