Class AsyncResult
The AsyncResult class is to perform asynchronous task. This is important when multiple asynchronous tasks are done in a ASP.Net page for sample.
public class AsyncResult : IAsyncResult
- Inheritance
-
AsyncResult
- Implements
- Inherited Members
Constructors
AsyncResult(AsyncCallback, object)
Initializes a new instance of the AsyncResult class.
public AsyncResult(AsyncCallback cb, object state)
Parameters
cbAsyncCallbackThe cb.
stateobjectThe state.
Properties
AsyncState
Gets a user-defined object that qualifies or contains information about an asynchronous operation.
public object AsyncState { get; }
Property Value
AsyncWaitHandle
Gets a WaitHandle that is used to wait for an asynchronous operation to complete.
public WaitHandle AsyncWaitHandle { get; }
Property Value
CompletedSynchronously
Gets an indication of whether the asynchronous operation completed synchronously.
public bool CompletedSynchronously { get; }
Property Value
IsCompleted
Gets an indication whether the asynchronous operation has completed.
public bool IsCompleted { get; }
Property Value
Methods
CompleteCall()
Complete call must be called when all the asynchronous tasks are done and release the locked thread to perform the remaining work.
public void CompleteCall()