DataServiceContext.Execute<TElement> Method (Uri, String, Boolean, OperationParameter[])

WCF Data Services 5.0

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)

public IEnumerable<TElement> Execute<TElement>(
	Uri requestUri,
	string httpMethod,
	bool singleResult,
	params OperationParameter[] operationParameters
)

Type Parameters

TElement

The type returned by the query.

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.
singleResult
Type: System.Boolean
Attribute used on service operations to specify that they return a single instance of their return element.
operationParameters
Type: System.Data.Services.Client.OperationParameter[]
The operation parameters used.

Return Value

Type: System.Collections.Generic.IEnumerable<TElement>
Returns IEnumerable<T>.
Show: