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.