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
userInterfaceService
IUserInterfaceServiceThe user interface service.
exception
ExceptionThe 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
userInterfaceService
is null.- ArgumentNullException
exception
is null.