IAsyncResult.AsyncState 属性

获取用户定义的对象,它限定或包含关于异步操作的信息。

**命名空间:**System
**程序集:**mscorlib(在 mscorlib.dll 中)

语法

声明
ReadOnly Property AsyncState As Object
用法
Dim instance As IAsyncResult
Dim value As Object

value = instance.AsyncState
Object AsyncState { get; }
property Object^ AsyncState {
    Object^ get ();
}
/** @property */
Object get_AsyncState ()
function get AsyncState () : Object

属性值

用户定义的对象,它限定或包含关于异步操作的信息。

备注

此属性返回一个对象,该对象是启动异步操作的方法的最后一个参数。

给实现者的说明 实现此属性以允许异步操作的调用方获取在操作开始指定的应用程序定义的对象。

给调用者的说明 可以使用此对象将异步操作的状态信息传递给您提供的 AsyncCallback

平台

Windows 98、Windows 2000 SP4、Windows CE、Windows Millennium Edition、Windows Mobile for Pocket PC、Windows Mobile for Smartphone、Windows Server 2003、Windows XP Media Center Edition、Windows XP Professional x64 Edition、Windows XP SP2、Windows XP Starter Edition

.NET Framework 并不是对每个平台的所有版本都提供支持。有关受支持版本的列表,请参见系统要求

版本信息

.NET Framework

受以下版本支持:2.0、1.1、1.0

.NET Compact Framework

受以下版本支持:2.0、1.0

请参见

参考

IAsyncResult 接口
IAsyncResult 成员
System 命名空间
AsyncCallback 委托