Share via


DataServiceQuery<TElement>.ElementType Property

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

Returns the type of the object used in the template to create the DataServiceQuery instance.

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

Syntax

'Declaration
Public Overrides ReadOnly Property ElementType As Type
public override Type ElementType { get; }

Property Value

Type: System.Type
Returns a Type that represents the type that is used in the template when the query is created.

Implements

IQueryable.ElementType

Remarks

Gets the type represented by T in the generic method CreateQuery<T>.

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.