Condividi tramite


Costruttore ExceptionMessageBox (Exception, ExceptionMessageBoxButtons, ExceptionMessageBoxSymbol, ExceptionMessageBoxDefaultButton, ExceptionMessageBoxOptions)

Creates an instance of ExceptionMessageBox by using information from the specified Exception and by specifying the buttons, symbol, default button, and other properties to display in the exception message box.

Spazio dei nomi:  Microsoft.SqlServer.MessageBox
Assembly:  Microsoft.ExceptionMessageBox (in Microsoft.ExceptionMessageBox.dll)

Sintassi

'Dichiarazione
Public Sub New ( _
    exception As Exception, _
    buttons As ExceptionMessageBoxButtons, _
    symbol As ExceptionMessageBoxSymbol, _
    defaultButton As ExceptionMessageBoxDefaultButton, _
    options As ExceptionMessageBoxOptions _
)
'Utilizzo
Dim exception As Exception
Dim buttons As ExceptionMessageBoxButtons
Dim symbol As ExceptionMessageBoxSymbol
Dim defaultButton As ExceptionMessageBoxDefaultButton
Dim options As ExceptionMessageBoxOptions

Dim instance As New ExceptionMessageBox(exception, _
    buttons, symbol, defaultButton, options)
public ExceptionMessageBox(
    Exception exception,
    ExceptionMessageBoxButtons buttons,
    ExceptionMessageBoxSymbol symbol,
    ExceptionMessageBoxDefaultButton defaultButton,
    ExceptionMessageBoxOptions options
)
public:
ExceptionMessageBox(
    Exception^ exception, 
    ExceptionMessageBoxButtons buttons, 
    ExceptionMessageBoxSymbol symbol, 
    ExceptionMessageBoxDefaultButton defaultButton, 
    ExceptionMessageBoxOptions options
)
new : 
        exception:Exception * 
        buttons:ExceptionMessageBoxButtons * 
        symbol:ExceptionMessageBoxSymbol * 
        defaultButton:ExceptionMessageBoxDefaultButton * 
        options:ExceptionMessageBoxOptions -> ExceptionMessageBox
public function ExceptionMessageBox(
    exception : Exception, 
    buttons : ExceptionMessageBoxButtons, 
    symbol : ExceptionMessageBoxSymbol, 
    defaultButton : ExceptionMessageBoxDefaultButton, 
    options : ExceptionMessageBoxOptions
)

Parametri

  • exception
    Tipo: 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.