ExceptionMessageBox 构造函数 (Exception, ExceptionMessageBoxButtons)

Creates an instance of ExceptionMessageBox by using information from the specified Exception and by specifying the buttons to display in the message box.

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

语法

声明
Public Sub New ( _
    exception As Exception, _
    buttons As ExceptionMessageBoxButtons _
)
用法
Dim exception As Exception
Dim buttons As ExceptionMessageBoxButtons

Dim instance As New ExceptionMessageBox(exception, _
    buttons)
public ExceptionMessageBox(
    Exception exception,
    ExceptionMessageBoxButtons buttons
)
public:
ExceptionMessageBox(
    Exception^ exception, 
    ExceptionMessageBoxButtons buttons
)
new : 
        exception:Exception * 
        buttons:ExceptionMessageBoxButtons -> ExceptionMessageBox
public function ExceptionMessageBox(
    exception : Exception, 
    buttons : ExceptionMessageBoxButtons
)

参数

  • exception
    类型:System. . :: . .Exception
    Exception that contains the top-level text, inner exception text, caption, data, help link, and optional additional information to display in the exception message box.