IAsyncResult Interface

Microsoft Silverlight will reach end of support after October 2021. Learn more.

Represents the status of an asynchronous operation.

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

Syntax

'Declaration
<ComVisibleAttribute(True)> _
Public Interface IAsyncResult
[ComVisibleAttribute(true)]
public interface IAsyncResult

The IAsyncResult type exposes the following members.

Properties

  Name Description
Public propertySupported by Silverlight for Windows PhoneSupported by Xbox 360 AsyncState Gets a user-defined object that qualifies or contains information about an asynchronous operation.
Public propertySupported by Silverlight for Windows PhoneSupported by Xbox 360 AsyncWaitHandle Gets a WaitHandle that is used to wait for an asynchronous operation to complete.
Public propertySupported by Silverlight for Windows PhoneSupported by Xbox 360 CompletedSynchronously Gets a value that indicates whether the asynchronous operation completed synchronously.
Public propertySupported by Silverlight for Windows PhoneSupported by Xbox 360 IsCompleted Gets a value that indicates whether the asynchronous operation has completed.

Top

Remarks

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.

Version Information

Silverlight

Supported in: 5, 4, 3

Silverlight for Windows Phone

Supported in: Windows Phone OS 7.1, Windows Phone OS 7.0

XNA Framework

Supported in: Xbox 360, Windows Phone OS 7.0

Platforms

For a list of the operating systems and browsers that are supported by Silverlight, see Supported Operating Systems and Browsers.

See Also

Reference