Share via


DataServiceContext.Execute Method (Uri, String, array<OperationParameter[])

Sends a request to the data service to execute a specific URI by using a specific HTTP method.

Not supported by the WCF Data Services 5.0 client for Silverlight.

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

Syntax

'Declaration
Public Function Execute ( _
    requestUri As Uri, _
    httpMethod As String, _
    ParamArray operationParameters As OperationParameter() _
) As OperationResponse
'Usage
Dim instance As DataServiceContext 
Dim requestUri As Uri 
Dim httpMethod As String 
Dim operationParameters As OperationParameter()
Dim returnValue As OperationResponse 

returnValue = instance.Execute(requestUri, _
    httpMethod, operationParameters)
public OperationResponse Execute(
    Uri requestUri,
    string httpMethod,
    params OperationParameter[] operationParameters
)
public:
OperationResponse^ Execute(
    Uri^ requestUri, 
    String^ httpMethod, 
    ... array<OperationParameter^>^ operationParameters
)
member Execute : 
        requestUri:Uri * 
        httpMethod:string * 
        operationParameters:OperationParameter[] -> OperationResponse
public function Execute(
    requestUri : Uri, 
    httpMethod : String, 
    ... operationParameters : OperationParameter[]
) : OperationResponse

Parameters

  • requestUri
    Type: System.Uri
    The URI to which the query request will be sent. The URI may be any valid data service URI. Can contain $ query parameters.
  • httpMethod
    Type: System.String
    The HTTP data transfer method used by the client.

Return Value

Type: System.Data.Services.Client.OperationResponse
The response of the operation.

See Also

Reference

DataServiceContext Class

Execute Overload

System.Data.Services.Client Namespace