Class IUserInterfaceServiceExtensions
Extension methods for IUserInterfaceService.
public static class IUserInterfaceServiceExtensions
- Inheritance
-
IUserInterfaceServiceExtensions
- Inherited Members
Methods
ShowErrorMessageBox(IUserInterfaceService, Exception)
Displays a message box with an error message.
public static MessageBoxResult ShowErrorMessageBox(this IUserInterfaceService userInterfaceService, Exception exception)
Parameters
userInterfaceServiceIUserInterfaceServiceThe user interface service.
exceptionExceptionThe exception for which to display the error message.
Returns
- MessageBoxResult
The message box result.
Remarks
The error message will contain the exception message, along with the messages from the inner exception hierarchy on separate lines. (See MessagesHierarchyAsMultipleLines(Exception) for details.)
Exceptions
- ArgumentNullException
userInterfaceServiceis null.- ArgumentNullException
exceptionis null.