Class ErrorReportForm
Presents the user with a friendly interface in case of an error, offering to report it to the developers.
public sealed class ErrorReportForm : Form
- Inheritance
-
objectMarshalByRefObjectComponentControlScrollableControlContainerControlFormErrorReportForm
- Extension Methods
Remarks
This class should only be used by System.Windows.Forms applications.
Methods
Dispose(bool)
Clean up any resources being used.
protected override void Dispose(bool disposing)
Parameters
disposing
booltrue if managed resources should be disposed; otherwise, false.
Report(Exception, Uri)
Displays the error reporting form.
public static void Report(Exception ex, Uri uploadUri)
Parameters
ex
ExceptionThe exception to report.
uploadUri
UriThe URI to upload error reports to.
Remarks
Modal to all windows on the current thread. Creates a new message loop if none exists.
SetupMonitoring(Uri)
Sets up hooks that catch and report any unhandled exceptions. Calling this more than once has no effect.
[Conditional("ERROR_REPORT")]
public static void SetupMonitoring(Uri uploadUri)
Parameters
uploadUri
UriThe URI to upload error reports to.
Remarks
If an exception is caught any remaining threads will continue to execute until the error has been reported. Then the entire process will be terminated.