DataServiceQuery<TElement>.BeginExecute 方法

启动异步网络操作,以便执行此对象实例所表示的查询。

命名空间:  System.Data.Services.Client
程序集:  Microsoft.Data.Services.Client(在 Microsoft.Data.Services.Client.dll 中)

语法

声明
Public Function BeginExecute ( _
    callback As AsyncCallback, _
    state As Object _
) As IAsyncResult
用法
Dim instance As DataServiceQuery
Dim callback As AsyncCallback
Dim state As Object
Dim returnValue As IAsyncResult

returnValue = instance.BeginExecute(callback, _
    state)
public IAsyncResult BeginExecute(
    AsyncCallback callback,
    Object state
)
public:
IAsyncResult^ BeginExecute(
    AsyncCallback^ callback, 
    Object^ state
)
member BeginExecute : 
        callback:AsyncCallback * 
        state:Object -> IAsyncResult 
public function BeginExecute(
    callback : AsyncCallback, 
    state : Object
) : IAsyncResult

参数

  • state
    类型:System.Object
    用户定义的对象,用于在操作开始与 callback 所定义的回调之间传输状态。

返回值

类型:System.IAsyncResult
表示异步操作状态的 IAsyncResult

请参阅

参考

DataServiceQuery<TElement> 类

System.Data.Services.Client 命名空间