DataServiceContext.CreateQuery<T> Method (String)

 
System_CAPS_noteNote

The .NET API Reference documentation has a new home. Visit the .NET API Browser on docs.microsoft.com to see the new experience.

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)

public DataServiceQuery<T> CreateQuery<T>(
	string entitySetName
)

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.

Type Parameters

T

The type returned by the query

.NET Framework
Available since 3.5
Silverlight
Available since 2.0
Return to top
Show: