[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_XBWI( Exception ex, MessageBox..::..MessageBoxButton..::..Buttons Buttons, Object Owner, MessageBox..::..MessageBoxIcons Icon ) |
| Visual Basic |
|---|
Public Shared Function Error_XBWI ( _ ex As Exception, _ Buttons As MessageBox..::..MessageBoxButton..::..Buttons, _ Owner As Object, _ Icon As MessageBox..::..MessageBoxIcons _ ) As DialogResult |
| Visual C++ |
|---|
public: static DialogResult Error_XBWI( Exception^ ex, MessageBox..::..MessageBoxButton..::..Buttons Buttons, Object^ Owner, MessageBox..::..MessageBoxIcons Icon ) |
| F# |
|---|
static member Error_XBWI : ex:Exception * Buttons:MessageBox..::..MessageBoxButton..::..Buttons * Owner:Object * Icon:MessageBox..::..MessageBoxIcons -> DialogResult |
| JScript |
|---|
public static function Error_XBWI( ex : Exception, Buttons : MessageBox..::..MessageBoxButton..::..Buttons, Owner : Object, Icon : MessageBox..::..MessageBoxIcons ) : DialogResult |
Parameters
- ex
- Type: System..::..Exception
Exception to show Message of
- Buttons
- Type: Tools.WindowsT.IndependentT..::..MessageBox..::..MessageBoxButton..::..Buttons
Defines which buttons will be available to user
- Owner
- Type: System..::..Object
The window message box window will be modal to (can be null). Typical values are IWin32Window and Window If implementation does not recognize type of owner it ignores it.
- 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 null |
See Also
Version History
1.5.3
- (Beta) Type of parameter owner changed from IWin32Window to Object to support both - IWin32Window and Window.
- (Beta) Fix: Buttons goes to prompt rather than forming buttons. Only OK button si always show.
- Fix: Bug in ModalEx_PTEIOWMHS(String, String, IEnumerable<(Of <<'(Object>)>>), Image, MessageBox..::..MessageBoxOptions, Object, Int32, EventHandler<(Of <<'(MessageBox, EventArgs>)>>), Sound) (which this method depends on) caused that that messagebox was rendered without buttons.
- Message from inner exceptions is shown as well
- ArgumentNullException is thrown when ex is null (instead of NullReferenceException)