Конструктор ExceptionMessageBox (String, String, ExceptionMessageBoxButtons, ExceptionMessageBoxSymbol, ExceptionMessageBoxDefaultButton, ExceptionMessageBoxOptions)
Этот API-интерфейс поддерживает инфраструктуру SQL Server 2012 и не предназначен для использования непосредственно из кода.
Creates an instance of ExceptionMessageBox with the supplied top-level error message text and dialog box caption of the message box. The method also specifies the buttons, symbol, default button, and dialog options to display in the exception message box.
Пространство имен: Microsoft.SqlServer.MessageBox
Сборка: Microsoft.ExceptionMessageBox (в Microsoft.ExceptionMessageBox.dll)
Синтаксис
'Декларация
Public Sub New ( _
text As String, _
caption As String, _
buttons As ExceptionMessageBoxButtons, _
symbol As ExceptionMessageBoxSymbol, _
defaultButton As ExceptionMessageBoxDefaultButton, _
options As ExceptionMessageBoxOptions _
)
'Применение
Dim text As String
Dim caption As String
Dim buttons As ExceptionMessageBoxButtons
Dim symbol As ExceptionMessageBoxSymbol
Dim defaultButton As ExceptionMessageBoxDefaultButton
Dim options As ExceptionMessageBoxOptions
Dim instance As New ExceptionMessageBox(text, caption, _
buttons, symbol, defaultButton, options)
public ExceptionMessageBox(
string text,
string caption,
ExceptionMessageBoxButtons buttons,
ExceptionMessageBoxSymbol symbol,
ExceptionMessageBoxDefaultButton defaultButton,
ExceptionMessageBoxOptions options
)
public:
ExceptionMessageBox(
String^ text,
String^ caption,
ExceptionMessageBoxButtons buttons,
ExceptionMessageBoxSymbol symbol,
ExceptionMessageBoxDefaultButton defaultButton,
ExceptionMessageBoxOptions options
)
new :
text:string *
caption:string *
buttons:ExceptionMessageBoxButtons *
symbol:ExceptionMessageBoxSymbol *
defaultButton:ExceptionMessageBoxDefaultButton *
options:ExceptionMessageBoxOptions -> ExceptionMessageBox
public function ExceptionMessageBox(
text : String,
caption : String,
buttons : ExceptionMessageBoxButtons,
symbol : ExceptionMessageBoxSymbol,
defaultButton : ExceptionMessageBoxDefaultButton,
options : ExceptionMessageBoxOptions
)
Параметры
- text
Тип: System.String
Error text of the top-level message.
- caption
Тип: System.String
Dialog box caption of the exception message box.
- buttons
Тип: Microsoft.SqlServer.MessageBox.ExceptionMessageBoxButtons
ExceptionMessageBoxSymbol enumeration that specifies the symbol to display in the exception message box.
- symbol
Тип: Microsoft.SqlServer.MessageBox.ExceptionMessageBoxSymbol
ExceptionMessageBoxSymbol enumeration that specifies the symbol to display in the exception message box.
- defaultButton
Тип: Microsoft.SqlServer.MessageBox.ExceptionMessageBoxDefaultButton
ExceptionMessageBoxDefaultButton enumeration that specifies the default button for the exception message box.
- options
Тип: Microsoft.SqlServer.MessageBox.ExceptionMessageBoxOptions
The ExceptionMessageBoxOptions enumeration that controls other behaviors of the exception message box.