Note
Access to this page requires authorization. You can try signing in or changing directories.
Access to this page requires authorization. You can try changing directories.
Represents a single query request to a data service.
Inheritance Hierarchy
System.Object
System.Data.Services.Client.DataServiceRequest
System.Data.Services.Client.DataServiceQuery
System.Data.Services.Client.DataServiceQuery<TElement>
Namespace: System.Data.Services.Client
Assembly: Microsoft.Data.Services.Client (in Microsoft.Data.Services.Client.dll)
Syntax
'Declaration
Public Class DataServiceQuery(Of TElement) _
Inherits DataServiceQuery _
Implements IQueryable(Of TElement), IEnumerable(Of TElement), _
IQueryable, IEnumerable
'Usage
Dim instance As DataServiceQuery(Of TElement)
public class DataServiceQuery<TElement> : DataServiceQuery,
IQueryable<TElement>, IEnumerable<TElement>, IQueryable, IEnumerable
generic<typename TElement>
public ref class DataServiceQuery : public DataServiceQuery,
IQueryable<TElement>, IEnumerable<TElement>, IQueryable, IEnumerable
type DataServiceQuery<'TElement> =
class
inherit DataServiceQuery
interface IQueryable<'TElement>
interface IEnumerable<'TElement>
interface IQueryable
interface IEnumerable
end
JScript does not support generic types and methods.
Type Parameters
- TElement
Type of results returned by the query.
The DataServiceQuery<TElement> type exposes the following members.
Properties
Name | Description | |
---|---|---|
![]() |
ElementType | Returns the type of the object used in the template to create the DataServiceQuery<TElement> instance. (Overrides DataServiceRequest.ElementType.) |
![]() |
Expression | Represents an expression containing the query to the data service. (Overrides DataServiceQuery.Expression.) |
![]() |
Provider | Represents the query provider instance. (Overrides DataServiceQuery.Provider.) |
![]() |
RequestUri | Get the URI for the query. (Overrides DataServiceRequest.RequestUri.) |
Top
Methods
Name | Description | |
---|---|---|
![]() |
AddQueryOption | Creates a new DataServiceQuery<TElement> with the query option set in the URI generated by the returned query. |
![]() |
BeginExecute | Starts an asynchronous network operation that executes the query represented by this object instance. |
![]() |
EndExecute | Ends an asynchronous query request to a data service. |
![]() |
Equals | (Inherited from Object.) |
![]() |
Execute | Executes the query and returns the results as a collection that implements IEnumerable.Not supported by the WCF Data Services 5.0 client for Silverlight. |
![]() |
Expand(String) | Expands a query to include entities from a related entity set in the query response. |
![]() |
Expand<TTarget>(Expression<Func<TElement, TTarget>>) | Expands a query to include entities from a related entity set in the query response, where the related entity is of a specific type in a type hierarchy. |
![]() |
Finalize | (Inherited from Object.) |
![]() |
GetEnumerator | Executes the query and returns the results as a collection. |
![]() |
GetHashCode | (Inherited from Object.) |
![]() |
GetType | (Inherited from Object.) |
![]() |
IncludeTotalCount | Requests that the count of all entities in the entity set be returned inline with the query results. |
![]() |
MemberwiseClone | (Inherited from Object.) |
![]() |
ToString | Represents the URI of the query to the data service. (Overrides Object.ToString().) |
Top
Explicit Interface Implementations
Name | Description | |
---|---|---|
![]() ![]() |
IEnumerable.GetEnumerator | Executes the query and returns the results as a collection. |
![]() ![]() |
IEnumerable<TElement>.GetEnumerator | Executes the query and returns the result as a collection.Supported only by the WCF Data Services 5.0 client for Silverlight. |
Top
Remarks
No public constructors are defined on this class. Object instances are created by using CreateQuery``1(Uri) or CreateQuery<T> on the DataServiceContext class.
Thread Safety
Any public static (Shared in Visual Basic) members of this type are thread safe. Any instance members are not guaranteed to be thread safe.