DataServiceQuery 類別

定義

抽象類別,表示 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
繼承
DataServiceQuery
衍生
實作

備註

這個類別上沒有定義任何公用建構函式 (Constructor)。No public constructors are defined on this class. 物件執行個體 (Instance) 的建立方式是在 CreateQuery 類別上使用 CreateQueryDataServiceContextObject instances are created by using CreateQuery or CreateQuery on the DataServiceContext class.

屬性

ElementType

取得以批次送出給資料服務的物件型別。Gets the type of object submitted as a batch to the data service.

(繼承來源 DataServiceRequest)
Expression

表示包含資料服務查詢的運算式。Represents an expression that contains the query to the data service.

Provider

表示查詢提供者 (Provider) 執行個體。Represents the query provider instance.

RequestUri

取得送出給資料服務之要求物件的 URI。Gets the URI of the request object submitted to a data service.

(繼承來源 DataServiceRequest)

方法

BeginExecute(AsyncCallback, Object)

以非同步方式傳送要求以執行資料服務查詢。Asynchronously sends a request to execute the data service query.

EndExecute(IAsyncResult)

呼叫以完成執行資料服務查詢的非同步作業。Called to complete the asynchronous operation of executing a data service query.

Equals(Object)

判斷指定的物件是否等於目前的物件。Determines whether the specified object is equal to the current object.

(繼承來源 Object)
Execute()

對資料服務執行查詢。Executes the query against the data service.

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()

表示資料服務查詢的 URI。Represents the URI of the query to the data service.

(繼承來源 DataServiceRequest)

明確介面實作

IEnumerable.GetEnumerator()

取得 IEnumerator 物件,這個物件可用來逐一查看查詢所傳回的集合。Gets the IEnumerator object that can be used to iterate through the collection returned by the query.

擴充方法

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.

Cast<TResult>(IQueryable)

IQueryable 的項目轉換為指定的型別。Converts the elements of an IQueryable to the specified type.

OfType<TResult>(IQueryable)

根據指定的型別來篩選 IQueryable 的項目。Filters the elements of an IQueryable based on a specified type.

適用於