none
When IAsyncResult.CompletedSynchronously will be set to true in Asynchronous programming model ? RRS feed

  • General discussion

  • Hi,

    I come across Asynchronous programming model, I read few blogs and MSDN regarding this APM. suddenly questions in my mind became book size. Please throw lights on me.

    1) When CompletedSynchronously  property of IAsyncResult (Which is return by BeginXXX()) will be set to true (please show me an example code) ?

    2) What is the use of waitHandle property of IAsyncResult (Which is return by BeginXXX()) (Please show me an example Code) ?

    3) Why do i want to call EndXXX(IAsyncResult) method manually (Inside BeginXXX() method, end of statement would call EndXXX(IAsyncResult) right ?) ?

    • Changed type Fred BaoModerator Wednesday, September 10, 2014 7:30 AM The discussion type is more suitable for this case
    Thursday, August 28, 2014 7:42 PM

All replies