DevForce Help Reference
OfType<TResult> Method (EntityQueryExtensions)


Filters the elements of an IEntityQuery based on a specified type.
Syntax
'Declaration
 
<ExtensionAttribute()>
Public Shared Function OfType(Of TResult)( _
   ByVal source As ITypedEntityQuery _
) As IEntityQuery(Of TResult)
'Usage
 
Dim source As ITypedEntityQuery
Dim value As IEntityQuery(Of TResult)
 
value = EntityQueryExtensions.OfType(Of TResult)(source)

Parameters

source

Type Parameters

TResult
Remarks
OfType is used to filter a query for instances of a derived type.
Requirements

Target Platforms: Windows 7, Windows Vista SP1 or later, Windows XP SP3, Windows Server 2008 (Server Core not supported), Windows Server 2008 R2 (Server Core supported with SP1 or later), Windows Server 2003 SP2

See Also

Reference

EntityQueryExtensions Class
EntityQueryExtensions Members

Send Feedback