DataServiceContext.CreateQuery<T>(String) 方法

定義

為指定之泛型型別的資料建立資料服務查詢。Creates a data service query for data of a specified generic type.

public:
generic <typename T>
 System::Data::Services::Client::DataServiceQuery<T> ^ CreateQuery(System::String ^ entitySetName);
public System.Data.Services.Client.DataServiceQuery<T> CreateQuery<T> (string entitySetName);
member this.CreateQuery : string -> System.Data.Services.Client.DataServiceQuery<'T>
Public Function CreateQuery(Of T) (entitySetName As String) As DataServiceQuery(Of T)

類型參數

T

查詢所傳回的型別。The type returned by the query

參數

entitySetName
String

解析成 URI 的字串。A string that resolves to a URI.

傳回

DataServiceQuery<T>

新的 DataServiceQuery<TElement> 執行個體,表示資料服務查詢。A new DataServiceQuery<TElement> instance that represents a data service query.

適用於