Skip to content

Latest commit

 

History

History
39 lines (24 loc) · 1.96 KB

exceptionroutedeventargs.md

File metadata and controls

39 lines (24 loc) · 1.96 KB
-api-id -api-type
T:Windows.UI.Xaml.ExceptionRoutedEventArgs
winrt class

Windows.UI.Xaml.ExceptionRoutedEventArgs

-description

Provides event data for exceptions that are raised as events by asynchronous operations, such as ImageFailed.

-remarks

Don't display ErrorMessage strings to end users. Instead, use substrings and codes within the string to positively identify the error condition, and have your app take appropriate action or display user-appropriate information in the app UI.

ExceptionRoutedEventArgs is the event data for several events that use the ExceptionRoutedEventHandler delegate. These include:

ExceptionRoutedEventArgs derived classes

ExceptionRoutedEventArgs is the parent class for MediaFailedRoutedEventArgs.

-examples

This example shows use of ExceptionRoutedEventArgs in a handler in order to get the HResult and error message.

[!code-csharpMediaPlayer_MediaFailedHandlers]

-see-also

RoutedEventArgs, MediaFailed, ImageFailed