DataServiceQuery<TElement> Class
July 26, 2012
Represents a single query request to an Open Data Protocol (OData) service.
System.Object
System.Data.Services.Client.DataServiceRequest
System.Data.Services.Client.DataServiceQuery
System.Data.Services.Client.DataServiceQuery<TElement>
System.Data.Services.Client.DataServiceRequest
System.Data.Services.Client.DataServiceQuery
System.Data.Services.Client.DataServiceQuery<TElement>
Assembly: System.Data.Services.Client (in System.Data.Services.Client.dll)
The DataServiceQuery<TElement> type exposes the following members.
| Name | Description | |
|---|---|---|
![]() | ElementType | Returns the type of the object used in the template to create the DataServiceQuery instance. (Overrides DataServiceRequest.ElementType.) |
![]() | Expression | Represents an expression that contains the query to the Open Data Protocol (OData) service. (Overrides DataServiceQuery.Expression.) |
![]() | Provider | Represents the query provider instance. (Overrides DataServiceQuery.Provider.) |
![]() | RequestUri | Gets the URI for the query. (Overrides DataServiceRequest.RequestUri.) |
| Name | Description | |
|---|---|---|
![]() | AddQueryOption | Creates a new DataServiceQuery<TElement> that includes the query option in the URI that is generated by the returned query. |
![]() | BeginExecute | Starts an asynchronous network operation that executes the query that is represented by this object instance. |
![]() | EndExecute | Ends an asynchronous query request to an Open Data Protocol (OData) service. |
![]() | Equals | (Inherited from Object.) |
![]() | Expand | Creates a new DataServiceQuery<TElement> that includes the expand option in the URI that is generated by the returned query. |
![]() | Finalize | (Inherited from Object.) |
![]() | GetHashCode | (Inherited from Object.) |
![]() | GetType | (Inherited from Object.) |
![]() | IncludeTotalCount | Requests that the count of all entities in the entity set be returned inline with the query results. |
![]() | MemberwiseClone | (Inherited from Object.) |
![]() | ToString | Represents the URI of the query to the Open Data Protocol (OData) service. (Overrides DataServiceRequest.ToString().) |
| Name | Description | |
|---|---|---|
![]() ![]() | IEnumerable<TElement>.GetEnumerator | Executes the query and returns the result as a collection. |
![]() ![]() | IEnumerable.GetEnumerator | Executes the query and returns the results as a collection. |
No public constructors are defined on this class. Object instances are created by using CreateQuery<T> on the DataServiceContext class.




