DataServiceQuery DataServiceQuery DataServiceQuery DataServiceQuery Class


An abstract class that represents a single query request to WCF Data Services.

public ref class DataServiceQuery abstract : System::Data::Services::Client::DataServiceRequest, System::Collections::IEnumerable, System::Linq::IQueryable
public abstract class DataServiceQuery : System.Data.Services.Client.DataServiceRequest, System.Collections.IEnumerable, System.Linq.IQueryable
type DataServiceQuery = class
    inherit DataServiceRequest
    interface IQueryable
    interface IEnumerable
Public MustInherit Class DataServiceQuery
Inherits DataServiceRequest
Implements IEnumerable, IQueryable


No public constructors are defined on this class. Object instances are created by using CreateQuery or CreateQuery on the DataServiceContext class.


ElementType ElementType ElementType ElementType

Gets the type of object submitted as a batch to the data service.

(Inherited from DataServiceRequest)
Expression Expression Expression Expression

Represents an expression that contains the query to the data service.

Provider Provider Provider Provider

Represents the query provider instance.

RequestUri RequestUri RequestUri RequestUri

Gets the URI of the request object submitted to a data service.

(Inherited from DataServiceRequest)


BeginExecute(AsyncCallback, Object) BeginExecute(AsyncCallback, Object) BeginExecute(AsyncCallback, Object) BeginExecute(AsyncCallback, Object)

Asynchronously sends a request to execute the data service query.

EndExecute(IAsyncResult) EndExecute(IAsyncResult) EndExecute(IAsyncResult) EndExecute(IAsyncResult)

Called to complete the asynchronous operation of executing a data service query.

Equals(Object) Equals(Object) Equals(Object) Equals(Object)

Determines whether the specified object is equal to the current object.

(Inherited from Object)
Execute() Execute() Execute() Execute()

Executes the query against the data service.

GetHashCode() GetHashCode() GetHashCode() GetHashCode()

Serves as the default hash function.

(Inherited from Object)
GetType() GetType() GetType() GetType()

Gets the Type of the current instance.

(Inherited from Object)
MemberwiseClone() MemberwiseClone() MemberwiseClone() MemberwiseClone()

Creates a shallow copy of the current Object.

(Inherited from Object)
ToString() ToString() ToString() ToString()

Represents the URI of the query to the data service.

(Inherited from DataServiceRequest)

Explicit Interface Implementations

IEnumerable.GetEnumerator() IEnumerable.GetEnumerator() IEnumerable.GetEnumerator() IEnumerable.GetEnumerator()

Gets the IEnumerator object that can be used to iterate through the collection returned by the query.

Extension Methods

Cast<TResult>(IEnumerable) Cast<TResult>(IEnumerable) Cast<TResult>(IEnumerable) Cast<TResult>(IEnumerable)

Casts the elements of an IEnumerable to the specified type.

OfType<TResult>(IEnumerable) OfType<TResult>(IEnumerable) OfType<TResult>(IEnumerable) OfType<TResult>(IEnumerable)

Filters the elements of an IEnumerable based on a specified type.

AsParallel(IEnumerable) AsParallel(IEnumerable) AsParallel(IEnumerable) AsParallel(IEnumerable)

Enables parallelization of a query.

AsQueryable(IEnumerable) AsQueryable(IEnumerable) AsQueryable(IEnumerable) AsQueryable(IEnumerable)

Converts an IEnumerable to an IQueryable.

Cast<TResult>(IQueryable) Cast<TResult>(IQueryable) Cast<TResult>(IQueryable) Cast<TResult>(IQueryable)

Converts the elements of an IQueryable to the specified type.

OfType<TResult>(IQueryable) OfType<TResult>(IQueryable) OfType<TResult>(IQueryable) OfType<TResult>(IQueryable)

Filters the elements of an IQueryable based on a specified type.

Applies to