Share via


DataServiceContext.BeginExecute<TElement> Method (Uri, AsyncCallback, Object, String, Boolean, array<OperationParameter[])

Asynchronously sends a request to the data service to execute a specific URI.

Namespace:  System.Data.Services.Client
Assembly:  Microsoft.Data.Services.Client (in Microsoft.Data.Services.Client.dll)

Syntax

'Declaration
Public Function BeginExecute(Of TElement) ( _
    requestUri As Uri, _
    callback As AsyncCallback, _
    state As Object, _
    httpMethod As String, _
    singleResult As Boolean, _
    ParamArray operationParameters As OperationParameter() _
) As IAsyncResult
'Usage
Dim instance As DataServiceContext 
Dim requestUri As Uri 
Dim callback As AsyncCallback 
Dim state As Object 
Dim httpMethod As String 
Dim singleResult As Boolean 
Dim operationParameters As OperationParameter()
Dim returnValue As IAsyncResult 

returnValue = instance.BeginExecute(requestUri, _
    callback, state, httpMethod, singleResult, _
    operationParameters)
public IAsyncResult BeginExecute<TElement>(
    Uri requestUri,
    AsyncCallback callback,
    Object state,
    string httpMethod,
    bool singleResult,
    params OperationParameter[] operationParameters
)
public:
generic<typename TElement>
IAsyncResult^ BeginExecute(
    Uri^ requestUri, 
    AsyncCallback^ callback, 
    Object^ state, 
    String^ httpMethod, 
    bool singleResult, 
    ... array<OperationParameter^>^ operationParameters
)
member BeginExecute : 
        requestUri:Uri * 
        callback:AsyncCallback * 
        state:Object * 
        httpMethod:string * 
        singleResult:bool * 
        operationParameters:OperationParameter[] -> IAsyncResult
JScript does not support generic types and methods.

Type Parameters

  • TElement
    The type returned by the query.

Parameters

  • requestUri
    Type: System.Uri
    The URI to which the query request will be sent.
  • callback
    Type: System.AsyncCallback
    Delegate to invoke when results are available for client consumption.
  • state
    Type: System.Object
    User-defined state object passed to the callback.
  • httpMethod
    Type: System.String
    The HTTP data transfer method used by the client.
  • singleResult
    Type: System.Boolean
    Attribute used on service operations to specify that they return a single instance of their return element.

Return Value

Type: System.IAsyncResult
The result of the operation.

See Also

Reference

DataServiceContext Class

BeginExecute Overload

System.Data.Services.Client Namespace