AsyncResult 构造函数

定义

从派生类中的构造函数中调用,用于初始化 AsyncResult 类。Called from constructors in derived classes to initialize the AsyncResult class.

重载

AsyncResult()

从派生类中的构造函数调用,用于初始化没有回调委托或状态对象的 AsyncResult 类的实例。Called from constructors in derived classes to initialize an instance of the AsyncResult class that does not have a callback delegate or a state object.

AsyncResult(Object)

从派生类中的构造函数调用,用于初始化没有回调委托但有状态对象的 AsyncResult 类的实例。Called from constructors in derived classes to initialize an instance of the AsyncResult class that does not have a callback delegate but does have a state object.

AsyncResult(AsyncCallback, Object)

从派生类中的构造函数调用,用于初始化有回调委托和状态对象的 AsyncResult 类的实例。Called from constructors in derived classes to initialize an instance of the AsyncResult class that has a callback delegate and a state object.

AsyncResult()

从派生类中的构造函数调用,用于初始化没有回调委托或状态对象的 AsyncResult 类的实例。Called from constructors in derived classes to initialize an instance of the AsyncResult class that does not have a callback delegate or a state object.

protected:
 AsyncResult();
protected AsyncResult ();
Protected Sub New ()

适用于

产品 已引入

AsyncResult(Object)

从派生类中的构造函数调用,用于初始化没有回调委托但有状态对象的 AsyncResult 类的实例。Called from constructors in derived classes to initialize an instance of the AsyncResult class that does not have a callback delegate but does have a state object.

protected:
 AsyncResult(System::Object ^ state);
protected AsyncResult (object state);
new System.IdentityModel.AsyncResult : obj -> System.IdentityModel.AsyncResult
Protected Sub New (state As Object)

参数

state
Object

一个用户定义的对象,限定或包含有关异步操作的信息。A user-defined object that qualifies or contains information about an asynchronous operation.

适用于

产品 已引入

AsyncResult(AsyncCallback, Object)

从派生类中的构造函数调用,用于初始化有回调委托和状态对象的 AsyncResult 类的实例。Called from constructors in derived classes to initialize an instance of the AsyncResult class that has a callback delegate and a state object.

protected:
 AsyncResult(AsyncCallback ^ callback, System::Object ^ state);
protected AsyncResult (AsyncCallback callback, object state);
new System.IdentityModel.AsyncResult : AsyncCallback * obj -> System.IdentityModel.AsyncResult
Protected Sub New (callback As AsyncCallback, state As Object)

参数

callback
AsyncCallback

异步操作完成时调用的方法。The method to be called when the asynchronous operation completes.

state
Object

一个用户定义的对象,限定或包含有关异步操作的信息。A user-defined object that qualifies or contains information about an asynchronous operation.

适用于

产品 已引入