QueryOperationResponse 类

定义

表示对 DataServiceQuery 的响应。Represents the responses to a DataServiceQuery.

public ref class QueryOperationResponse : System::Data::Services::Client::OperationResponse, System::Collections::IEnumerable
public class QueryOperationResponse : System.Data.Services.Client.OperationResponse, System.Collections.IEnumerable
type QueryOperationResponse = class
    inherit OperationResponse
    interface IEnumerable
Public Class QueryOperationResponse
Inherits OperationResponse
Implements IEnumerable
继承
QueryOperationResponse
派生
实现

属性

Error

获取操作引发的错误。Gets error thrown by the operation.

(继承自 OperationResponse)
Headers

在派生类中重写时,包含与单个操作相关联的 HTTP 响应标头。When overridden in a derived class, contains the HTTP response headers associated with a single operation.

(继承自 OperationResponse)
Query

获取生成 DataServiceQuery 项的 QueryOperationResponseGets the DataServiceQuery that generates the QueryOperationResponse items.

StatusCode

在派生类中重写时,获取或设置与单个操作相关联的 HTTP 响应代码。When overridden in a derived class, gets or sets the HTTP response code associated with a single operation.

(继承自 OperationResponse)
TotalCount

查询中的服务器结果集计数值(如果查询已请求了该值)。The server result set count value from a query, if the query has requested the value.

方法

Equals(Object)

确定指定的对象是否等于当前对象。Determines whether the specified object is equal to the current object.

(继承自 Object)
GetContinuation()

获取 DataServiceQueryContinuation 对象,其中包含用于检索下一结果页的 URI。Gets a DataServiceQueryContinuation object containing the URI that is used to retrieve the next results page.

GetContinuation(IEnumerable)

获取 DataServiceQueryContinuation 对象,其中包含用于检索指定集合中下一页相关实体的 URI。Gets a DataServiceQueryContinuation object containing the URI that is used to retrieve the next page of related entities in the specified collection.

GetContinuation<T>(IEnumerable<T>)

获取 DataServiceQueryContinuation<T> 对象,其中包含用于检索指定集合中下一页相关实体的 URI。Gets a DataServiceQueryContinuation<T> object that contains the URI that is used to retrieve the next page of related entities in the specified collection.

GetEnumerator()

执行 DataServiceQuery 并返回 QueryOperationResponse 项。Executes the DataServiceQuery and returns QueryOperationResponse items.

GetHashCode()

用作默认哈希函数。Serves as the default hash function.

(继承自 Object)
GetType()

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

(继承自 Object)
MemberwiseClone()

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

(继承自 Object)
ToString()

返回一个表示当前对象的 string。Returns a string that represents the current object.

(继承自 Object)

扩展方法

Cast<TResult>(IEnumerable)

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

OfType<TResult>(IEnumerable)

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

AsParallel(IEnumerable)

启用查询的并行化。Enables parallelization of a query.

AsQueryable(IEnumerable)

IEnumerable 转换为 IQueryableConverts an IEnumerable to an IQueryable.

适用于