[Mono-bugs] [Bug 328830] BackgroundWorker: RunWorkerCompletedEventArgs. Result should rethrow exception from DoWork

bugzilla_noreply at novell.com bugzilla_noreply at novell.com
Tue Oct 2 08:40:22 EDT 2007


https://bugzilla.novell.com/show_bug.cgi?id=328830#c2





--- Comment #2 from Andy Hume <andyhume32 at yahoo.co.uk>  2007-10-02 06:40:22 MST ---
The RunWorkerCompletedEventArgs.Result MSDN documentation
(http://msdn2.microsoft.com/en-us/library/system.componentmodel.runworkercompletedeventargs.result.aspx)
does actually document this behaviour.  It also notes that
InvalidOperationException is thrown when Cancelled is true.

This class is a subclass of AsyncCompletedEventArgs, its documentation
http://msdn2.microsoft.com/en-us/library/system.componentmodel.asynccompletedeventargs.aspx
and
http://msdn2.microsoft.com/en-us/library/system.componentmodel.asynccompletedeventargs.raiseexceptionifnecessary.aspx
describe this behaviour too, and note that all such properties should call the
RaiseExceptionIfNecessary method which implements this behaviour.


-- 
Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the QA contact for the bug.
You are the assignee for the bug.


More information about the mono-bugs mailing list