Constructeur ExceptionMessageBox (Exception, ExceptionMessageBoxButtons, ExceptionMessageBoxSymbol, ExceptionMessageBoxDefaultButton)
Creates an instance of ExceptionMessageBox by using information from the specified Exception and by specifying the buttons, symbol, and default button to display in the exception message box. .
Espace de noms : Microsoft.SqlServer.MessageBox
Assembly : Microsoft.ExceptionMessageBox (en Microsoft.ExceptionMessageBox.dll)
Syntaxe
'Déclaration
Public Sub New ( _
exception As Exception, _
buttons As ExceptionMessageBoxButtons, _
symbol As ExceptionMessageBoxSymbol, _
defaultButton As ExceptionMessageBoxDefaultButton _
)
'Utilisation
Dim exception As Exception
Dim buttons As ExceptionMessageBoxButtons
Dim symbol As ExceptionMessageBoxSymbol
Dim defaultButton As ExceptionMessageBoxDefaultButton
Dim instance As New ExceptionMessageBox(exception, _
buttons, symbol, defaultButton)
public ExceptionMessageBox(
Exception exception,
ExceptionMessageBoxButtons buttons,
ExceptionMessageBoxSymbol symbol,
ExceptionMessageBoxDefaultButton defaultButton
)
public:
ExceptionMessageBox(
Exception^ exception,
ExceptionMessageBoxButtons buttons,
ExceptionMessageBoxSymbol symbol,
ExceptionMessageBoxDefaultButton defaultButton
)
new :
exception:Exception *
buttons:ExceptionMessageBoxButtons *
symbol:ExceptionMessageBoxSymbol *
defaultButton:ExceptionMessageBoxDefaultButton -> ExceptionMessageBox
public function ExceptionMessageBox(
exception : Exception,
buttons : ExceptionMessageBoxButtons,
symbol : ExceptionMessageBoxSymbol,
defaultButton : ExceptionMessageBoxDefaultButton
)
Paramètres
- exception
Type : 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.
- buttons
Type : Microsoft.SqlServer.MessageBox. . :: . .ExceptionMessageBoxButtons
ExceptionMessageBoxButtons enumeration that specifies the buttons to display in the exception message box.
- symbol
Type : Microsoft.SqlServer.MessageBox. . :: . .ExceptionMessageBoxSymbol
ExceptionMessageBoxSymbol enumeration that specifies the symbol to display in the exception message box.
- defaultButton
Type : Microsoft.SqlServer.MessageBox. . :: . .ExceptionMessageBoxDefaultButton
ExceptionMessageBoxDefaultButton enumeration that specifies the default button for the exception message box.