C# – Compact Framework 2.0: is it possible to abort an asynchronous Web Services call

asynchronousccompact-frameworkweb services

I have a custom control that make asynchronous Web Services calls. I wonder if I can dispose the control while an asynchronous call hasn't ended: I make the call, and before I get the response I dispose the object.

What must I do before I get the response to dispose the custom control safetly?

Thank you!

Best Answer

Use CancelAsync() method. Check this article.