IAsyncResult.AsyncState Property

July 28, 2014

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

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

Object AsyncState { get; }

Property Value

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

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.

Windows Phone OS

Supported in: 8.1, 8.0, 7.1, 7.0

Windows Phone

Show:
© 2014 Microsoft