DevForce Help Reference
TakeWhile<TSource>(IEntityQuery<TSource>,Expression<Func<TSource,Boolean>>) Method


Returns elements from a sequence as long as a specified condition is true, and then skips the remaining elements.
Syntax
'Declaration
 
<ExtensionAttribute()>
Public Overloads Shared Function TakeWhile(Of TSource)( _
   ByVal source As IEntityQuery(Of TSource), _
   ByVal predicate As Expression(Of Func(Of TSource,Boolean)) _
) As IEntityQuery(Of TSource)
'Usage
 
Dim source As IEntityQuery(Of TSource)
Dim predicate As Expression(Of Func(Of TSource,Boolean))
Dim value As IEntityQuery(Of TSource)
 
value = EntityQueryExtensions.TakeWhile(Of TSource)(source, predicate)

Parameters

source
predicate

Type Parameters

TSource
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
Overload List

Send Feedback