Mono Class Library: System.IAsyncResult Overview | Members

System.IAsyncResult.AsyncState Property

Gets the user-provided state object supplied at the time the asynchronous operation was started. [Edit]

public object AsyncState { get; }

Value

The supplied object. [Edit]

Remarks

Operation

The object returned by this property is required to be the object specified as the last parameter to methods that begin asynchronous operations, such as System.IO.FileStream.BeginRead(Byte[], int, int, AsyncCallback, object).

This property is read-only.

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

Usage
The object returned by this property can be used to pass state information for the asynchronous operation to a AsyncCallback delegate.

[Edit]

Requirements

Namespace: System
Assembly: mscorlib (in mscorlib.dll)
Assembly Versions: 1.0.5000.0, 2.0.0.0