IAsyncResult.AsyncState Property
Gets a user-defined object that qualifies or contains information about an asynchronous operation.
[Visual Basic] ReadOnly Property AsyncState As Object [C#] object AsyncState {get;} [C++] __property Object* get_AsyncState(); [JScript] function get AsyncState() : Object;
Property Value
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 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.
Requirements
Platforms: Windows 98, Windows NT 4.0, Windows Millennium Edition, Windows 2000, Windows XP Home Edition, Windows XP Professional, Windows Server 2003 family, .NET Compact Framework, Common Language Infrastructure (CLI) Standard
See Also
IAsyncResult Interface | IAsyncResult Members | System Namespace | AsyncCallback