Udostępnij za pośrednictwem


DataServiceQuery Class

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

Inheritance Hierarchy

System.Object
  System.Data.Services.Client.DataServiceRequest
    System.Data.Services.Client.DataServiceQuery
      System.Data.Services.Client.DataServiceQuery<TElement>

Namespace:  System.Data.Services.Client
Assembly:  Microsoft.Data.Services.Client (in Microsoft.Data.Services.Client.dll)

Syntax

'Declaration
Public MustInherit Class DataServiceQuery _
    Inherits DataServiceRequest _
    Implements IQueryable, IEnumerable
'Usage
Dim instance As DataServiceQuery
public abstract class DataServiceQuery : DataServiceRequest, 
    IQueryable, IEnumerable
public ref class DataServiceQuery abstract : public DataServiceRequest, 
    IQueryable, IEnumerable
[<AbstractClassAttribute>]
type DataServiceQuery =  
    class 
        inherit DataServiceRequest 
        interface IQueryable 
        interface IEnumerable 
    end
public abstract class DataServiceQuery extends DataServiceRequest implements IQueryable, IEnumerable

The DataServiceQuery type exposes the following members.

Properties

  Name Description
Public property ElementType Gets the type of object submitted as a batch to the data service. (Inherited from DataServiceRequest.)
Public property Expression Represents an expression that contains the query to the data service.
Public property Provider Represents the query provider instance.
Public property RequestUri Gets the URI of the request object submitted to a data service. (Inherited from DataServiceRequest.)

Top

Methods

  Name Description
Public method BeginExecute Asynchronously sends a request to execute the data service query.
Public method EndExecute Called to complete the asynchronous operation of executing a data service query.
Public method Equals (Inherited from Object.)
Public method Execute Executes the query against the data service.Not supported by the WCF Data Services 5.0 client for Silverlight.
Protected method Finalize (Inherited from Object.)
Public method GetHashCode (Inherited from Object.)
Public method GetType (Inherited from Object.)
Protected method MemberwiseClone (Inherited from Object.)
Public method ToString (Inherited from Object.)

Top

Explicit Interface Implementations

  Name Description
Explicit interface implemetationPrivate method IEnumerable.GetEnumerator Gets the IEnumerator object that can be used to iterate through the collection returned by the query.

Top

Remarks

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

Thread Safety

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

See Also

Reference

System.Data.Services.Client Namespace