DevForce Help Reference
Any(IQueryable) Method
Example 


Determines whether a sequence contains any elements.
Syntax
'Declaration
 
<ExtensionAttribute()>
Public Overloads Shared Function Any( _
   ByVal source As IQueryable _
) As Boolean
'Usage
 
Dim source As IQueryable
Dim value As Boolean
 
value = QueryableExtensions.Any(source)
[Extension()]
public static bool Any( 
   IQueryable source
)

Parameters

source
Example
var mgr1 = new DomainModelEntityManager();
bool any = mgr1.Customers.Any();
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

QueryableExtensions Class
QueryableExtensions Members
Overload List

Send Feedback