DataServiceContext.BeginExecute Method (Uri, AsyncCallback, Object, String, 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 ( _
requestUri As Uri, _
callback As AsyncCallback, _
state As Object, _
httpMethod As String, _
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 operationParameters As OperationParameter()
Dim returnValue As IAsyncResult
returnValue = instance.BeginExecute(requestUri, _
callback, state, httpMethod, operationParameters)
public IAsyncResult BeginExecute(
Uri requestUri,
AsyncCallback callback,
Object state,
string httpMethod,
params OperationParameter[] operationParameters
)
public:
IAsyncResult^ BeginExecute(
Uri^ requestUri,
AsyncCallback^ callback,
Object^ state,
String^ httpMethod,
... array<OperationParameter^>^ operationParameters
)
member BeginExecute :
requestUri:Uri *
callback:AsyncCallback *
state:Object *
httpMethod:string *
operationParameters:OperationParameter[] -> IAsyncResult
public function BeginExecute(
requestUri : Uri,
callback : AsyncCallback,
state : Object,
httpMethod : String,
... operationParameters : OperationParameter[]
) : IAsyncResult
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.
- operationParameters
Type: array<System.Data.Services.Client.OperationParameter[]
The operation parameters used.
Return Value
Type: System.IAsyncResult
The result of the operation.