Note
Access to this page requires authorization. You can try signing in or changing directories.
Access to this page requires authorization. You can try changing directories.
Executes the query against the data service.
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 As IEnumerable
'Usage
Dim instance As DataServiceQuery
Dim returnValue As IEnumerable
returnValue = instance.Execute()
public IEnumerable Execute()
public:
IEnumerable^ Execute()
member Execute : unit -> IEnumerable
public function Execute() : IEnumerable
Return Value
Type: System.Collections.IEnumerable
An IEnumerable<T> that contains the results of the query operation.
Exceptions
Exception | Condition |
---|---|
DataServiceQueryException | When the data service returns an HTTP 404: Resource Not Found error. |
Remarks
The Execute method is used to execute the given data service query.
The Execute method generates an HTTP GET request that is set to the data service.