Freigeben über


DataServiceContext.CreateQuery<T> Method

Microsoft Silverlight will reach end of support after October 2021. Learn more.

Creates a data service query for data of a specified generic type.

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

Syntax

'Declaration
Public Function CreateQuery(Of T) ( _
    entitySetName As String _
) As DataServiceQuery(Of T)
public DataServiceQuery<T> CreateQuery<T>(
    string entitySetName
)

Type Parameters

  • T
    The type returned by the query.

Parameters

  • entitySetName
    Type: System.String
    A string that resolves to a URI.

Return Value

Type: System.Data.Services.Client.DataServiceQuery<T>
A new DataServiceQuery<TElement> instance that represents a data service query.

Version Information

Silverlight

Supported in: 5, 4, 3

Platforms

For a list of the operating systems and browsers that are supported by Silverlight, see Supported Operating Systems and Browsers.