ExceptionMessageBox.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.

命名空间:  Microsoft.SqlServer.MessageBox
程序集:  Microsoft.ExceptionMessageBox(在 Microsoft.ExceptionMessageBox.dll 中)

语法

声明
Public Sub SetButtonText ( _
    button1Text As String, _
    button2Text As String, _
    button3Text As String, _
    button4Text As String, _
    button5Text As String _
)
用法
Dim instance As ExceptionMessageBox 
Dim button1Text As String 
Dim button2Text As String 
Dim button3Text As String 
Dim button4Text As String 
Dim button5Text As String

instance.SetButtonText(button1Text, button2Text, _
    button3Text, button4Text, button5Text)
public void SetButtonText(
    string button1Text,
    string button2Text,
    string button3Text,
    string button4Text,
    string button5Text
)
public:
void SetButtonText(
    String^ button1Text, 
    String^ button2Text, 
    String^ button3Text, 
    String^ button4Text, 
    String^ button5Text
)
member SetButtonText : 
        button1Text:string * 
        button2Text:string * 
        button3Text:string * 
        button4Text:string * 
        button5Text:string -> unit
public function SetButtonText(
    button1Text : String, 
    button2Text : String, 
    button3Text : String, 
    button4Text : String, 
    button5Text : String
)

参数

  • button1Text
    类型:System.String
    Text for the first custom button.
  • button2Text
    类型:System.String
    Text for the second custom button.
  • button3Text
    类型:System.String
    Text for the third custom button.
  • button4Text
    类型:System.String
    Text for the fourth custom button.
  • button5Text
    类型:System.String
    Text for the fifth custom button.

请参阅

参考

ExceptionMessageBox 类

SetButtonText 重载

Microsoft.SqlServer.MessageBox 命名空间