[This is preliminary documentation and is subject to change.]
Displays modal message box with information about Exception
Namespace: Tools.WindowsT.IndependentTAssembly: Tools.Windows (in Tools.Windows.dll) Version: 1.5.3.38916 (1.5.3.38916)
Syntax
| C# |
|---|
public static DialogResult Error_XTBI( Exception ex, string Title, MessageBox..::..MessageBoxButton..::..Buttons Buttons, MessageBox..::..MessageBoxIcons Icon ) |
| Visual Basic |
|---|
Public Shared Function Error_XTBI ( _ ex As Exception, _ Title As String, _ Buttons As MessageBox..::..MessageBoxButton..::..Buttons, _ Icon As MessageBox..::..MessageBoxIcons _ ) As DialogResult |
| Visual C++ |
|---|
public: static DialogResult Error_XTBI( Exception^ ex, String^ Title, MessageBox..::..MessageBoxButton..::..Buttons Buttons, MessageBox..::..MessageBoxIcons Icon ) |
| F# |
|---|
static member Error_XTBI : ex:Exception * Title:string * Buttons:MessageBox..::..MessageBoxButton..::..Buttons * Icon:MessageBox..::..MessageBoxIcons -> DialogResult |
| JScript |
|---|
public static function Error_XTBI( ex : Exception, Title : String, Buttons : MessageBox..::..MessageBoxButton..::..Buttons, Icon : MessageBox..::..MessageBoxIcons ) : DialogResult |
Parameters
- ex
- Type: System..::..Exception
Exception to show Message of
- Title
- Type: System..::..String
Message box title
- Buttons
- Type: Tools.WindowsT.IndependentT..::..MessageBox..::..MessageBoxButton..::..Buttons
Defines which buttons will be available to user
- Icon
- Type: Tools.WindowsT.IndependentT..::..MessageBox..::..MessageBoxIcons
Defines one of predefined icons to show to user. Actual image is obtained via GetIconDelegate
Return Value
Indicates button clicked by user
Exceptions
| Exception | Condition |
|---|---|
| System..::..ArgumentNullException | ex is nulll |
See Also
Version History
1.5.3
- Message from inner exceptions is shown as well
- ArgumentNullException is thrown when ex is null (instead of NullReferenceException)