IAsyncResult Interface

July 28, 2014

Represents the status of an asynchronous operation.

Namespace:  System
Assembly:  mscorlib (in mscorlib.dll)

public interface IAsyncResult

The IAsyncResult type exposes the following members.

  NameDescription
Public propertyAsyncStateGets a user-defined object that qualifies or contains information about an asynchronous operation.
Public propertyAsyncWaitHandleGets a WaitHandle that is used to wait for an asynchronous operation to complete.
Public propertyCompletedSynchronouslyGets a value that indicates whether the asynchronous operation completed synchronously.
Public propertyIsCompletedGets a value that indicates whether the asynchronous operation has completed.
Top

The IAsyncResult interface is implemented by classes containing methods that can operate asynchronously. It is the return type of methods that initiate an asynchronous operation, such as IsolatedStorageFileStream.BeginRead, and is passed to methods that conclude an asynchronous operation, such as IsolatedStorageFileStream.EndRead. An IAsyncResult is also passed to the method that is invoked by an AsyncCallback delegate when an asynchronous operation completes.

An object that supports the IAsyncResult interface stores state information for an asynchronous operation, and provides a synchronization object to allow threads to be signaled when the operation completes.

Windows Phone OS

Supported in: 8.1, 8.0, 7.1, 7.0

Windows Phone

Show:
© 2014 Microsoft