IAsyncResult.AsyncState Property

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

Gets a user-defined object that qualifies or contains information about an asynchronous operation.

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

Syntax

'Declaration
ReadOnly Property AsyncState As Object
Object AsyncState { get; }

Property Value

Type: System.Object
A user-defined object that qualifies or contains information about an asynchronous operation.

Remarks

This property returns the object that is the last parameter of the method that initiates an asynchronous operation.

Notes to Implementers

Implement this property to allow the caller of an asynchronous operation to obtain an application-defined object that is specified at the start of the operation.

Notes to Callers

This object can be used to pass state information for the asynchronous operation to an AsyncCallback that you provide.

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.