Duration (Pacific Standard Time):
To (Pacific Standard Time):
Impact:
User Action:

DataServiceQuery<TElement> Class

Represents a single query request to a data service.

Namespace:  System.Data.Services.Client
Assembly:  Microsoft.Data.Services.Client (in Microsoft.Data.Services.Client.dll)
Public Class DataServiceQuery(Of TElement) _
	Inherits DataServiceQuery _
	Implements IQueryable(Of TElement), IEnumerable(Of TElement),  _
	IQueryable, IEnumerable
Dim instance As DataServiceQuery(Of TElement)

Type Parameters

TElement

Type of results returned by the query.

The DataServiceQuery<TElement> type exposes the following members.

  Name Description
Public property ElementType Returns the type of the object used in the template to create the DataServiceQuery<TElement> instance. (Overrides DataServiceRequest.ElementType.)
Public property Expression Represents an expression containing the query to the data service. (Overrides DataServiceQuery.Expression.)
Public property Provider Represents the query provider instance. (Overrides DataServiceQuery.Provider.)
Public property RequestUri Get the URI for the query. (Overrides DataServiceRequest.RequestUri.)
Top
  Name Description
Public method AddQueryOption Creates a new DataServiceQuery<TElement> with the query option set in the URI generated by the returned query.
Public method BeginExecute Starts an asynchronous network operation that executes the query represented by this object instance.
Public method EndExecute Ends an asynchronous query request to a data service.
Public method Equals (Inherited from Object.)
Public method Execute Executes the query and returns the results as a collection that implements IEnumerable.
Public method Expand(String) Expands a query to include entities from a related entity set in the query response.
Public method Expand<TTarget>(Expression<Func<TElement, TTarget>>) Expands a query to include entities from a related entity set in the query response, where the related entity is of a specific type in a type hierarchy.
Protected method Finalize (Inherited from Object.)
Public method GetEnumerator Executes the query and returns the results as a collection.
Public method GetHashCode (Inherited from Object.)
Public method GetType (Inherited from Object.)
Public method IncludeTotalCount Requests that the count of all entities in the entity set be returned inline with the query results.
Protected method MemberwiseClone (Inherited from Object.)
Public method ToString Represents the URI of the query to the data service. (Overrides Object.ToString().)
Top
  Name Description
Explicit interface implemetation Private method IEnumerable.GetEnumerator Executes the query and returns the results as a collection.
Top

No public constructors are defined on this class. Object instances are created by using CreateQuery``1(Uri) or CreateQuery<T> on the DataServiceContext class.

Any public static (Shared in Visual Basic) members of this type are thread safe. Any instance members are not guaranteed to be thread safe.