Udostępnij za pośrednictwem


DataServiceQuery<TElement>.ElementType Property

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

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

Syntax

'Declaration
Public Overrides ReadOnly Property ElementType As Type 
    Get
'Usage
Dim instance As DataServiceQuery 
Dim value As Type 

value = instance.ElementType
public override Type ElementType { get; }
public:
virtual property Type^ ElementType {
    Type^ get () override;
}
abstract ElementType : Type 
override ElementType : Type
override function get ElementType () : Type

Property Value

Type: System.Type
Returns Type representing the type used in the template when the query is created.

Implements

IQueryable.ElementType

Remarks

Gets the type represented by T in the generic methods: CreateQuery``1(Uri) or CreateQuery<T>.

See Also

Reference

DataServiceQuery<TElement> Class

System.Data.Services.Client Namespace