Information
The topic you requested is included in another documentation set. For convenience, it's displayed below. Choose Switch to see the topic in its original location.
This topic has not yet been rated - Rate this topic

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<TElement> : DataServiceQuery, 
	IQueryable<TElement>, IEnumerable<TElement>, IQueryable, IEnumerable

Type Parameters

TElement

Type of results returned by the query.

The DataServiceQuery<TElement> type exposes the following members.

  NameDescription
Public propertyElementTypeReturns the type of the object used in the template to create the DataServiceQuery<TElement> instance. (Overrides DataServiceRequest.ElementType.)
Public propertyExpressionRepresents an expression containing the query to the data service. (Overrides DataServiceQuery.Expression.)
Public propertyProviderRepresents the query provider instance. (Overrides DataServiceQuery.Provider.)
Public propertyRequestUriGet the URI for the query. (Overrides DataServiceRequest.RequestUri.)
Top
  NameDescription
Public methodAddQueryOptionCreates a new DataServiceQuery<TElement> with the query option set in the URI generated by the returned query.
Public methodBeginExecuteStarts an asynchronous network operation that executes the query represented by this object instance.
Public methodEndExecuteEnds an asynchronous query request to a data service.
Public methodEquals (Inherited from Object.)
Public methodExecuteExecutes the query and returns the results as a collection that implements IEnumerable.
Public methodExpand(String)Expands a query to include entities from a related entity set in the query response.
Public methodExpand<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 methodFinalize (Inherited from Object.)
Public methodGetEnumeratorExecutes the query and returns the results as a collection.
Public methodGetHashCode (Inherited from Object.)
Public methodGetType (Inherited from Object.)
Public methodIncludeTotalCountRequests that the count of all entities in the entity set be returned inline with the query results.
Protected methodMemberwiseClone (Inherited from Object.)
Public methodToStringRepresents the URI of the query to the data service. (Overrides Object.ToString().)
Top
  NameDescription
Explicit interface implemetationPrivate methodIEnumerable.GetEnumeratorExecutes 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.
Did you find this helpful?
(1500 characters remaining)
Thank you for your feedback
Show:
© 2014 Microsoft. All rights reserved.