DataServiceQuery DataServiceQuery DataServiceQuery DataServiceQuery Class


表示对 WCF Data Services 的单个查询请求的抽象类。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. 对象实例是使用 CreateQuery 类的 CreateQueryDataServiceContext 方法创建的。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

获取提交到数据服务的请求对象的 URI。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()

获取当前实例的 TypeGets the Type of the current instance.

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

创建当前 Object 的浅表副本。Creates a shallow copy of the current Object.

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

表示对数据服务的查询的 URI。Represents the URI of the query to the data service.

(Inherited from DataServiceRequest)


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

获取可用于循环访问查询返回的集合的 IEnumerator 对象。Gets the IEnumerator object that can be used to iterate through the collection returned by the query.


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

IEnumerable 的元素强制转换为指定的类型。Casts the elements of an IEnumerable to the specified type.

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

根据指定类型筛选 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)

IEnumerable 转换为 IQueryableConverts an IEnumerable to an IQueryable.

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

IQueryable 的元素转换为指定的类型。Converts the elements of an IQueryable to the specified type.

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

根据指定类型筛选 IQueryable 的元素。Filters the elements of an IQueryable based on a specified type.