DataServiceQuery<TElement>.BeginExecute(AsyncCallback, Object) 方法
定义
启动异步网络操作,以便执行此对象实例所表示的查询。Starts an asynchronous network operation that executes the query represented by this object instance.
public:
IAsyncResult ^ BeginExecute(AsyncCallback ^ callback, System::Object ^ state);
public IAsyncResult BeginExecute (AsyncCallback callback, object state);
override this.BeginExecute : AsyncCallback * obj -> IAsyncResult
Public Function BeginExecute (callback As AsyncCallback, state As Object) As IAsyncResult
参数
- callback
- AsyncCallback
完成操作时要调用的委托。The delegate to invoke when the operation completes.
- state
- Object
用户定义的对象,用于在操作开始与 callback 所定义的回调之间传输状态。User defined object used to transfer state between the start of the operation and the callback defined by callback.
返回
表示异步操作状态的 IAsyncResult。An IAsyncResult that represents the status of the asynchronous operation.