IdeaBlade DevForce 2010 Help Reference
FindEntities(Type,EntityState) Method
See Also  Send Feedback
IdeaBlade.EntityModel Assembly > IdeaBlade.EntityModel Namespace > EntityManager Class > FindEntities Method : FindEntities(Type,EntityState) Method



type
The type of Entity to retrieve
entityState
EntityState(s) of entities to return
Retrieves all entities of a specified type with the specified entity state(s) from cache. (Except EntityState.Detached)

Syntax

Visual Basic (Declaration) 
Public Overloads Function FindEntities( _
   ByVal type As Type, _
   ByVal entityState As EntityState _
) As IEnumerable
Visual Basic (Usage)Copy Code
Dim instance As EntityManager
Dim type As Type
Dim entityState As EntityState
Dim value As IEnumerable
 
value = instance.FindEntities(type, entityState)
C# 
public IEnumerable FindEntities( 
   Type type,
   EntityState entityState
)
C++/CLI 
public:
IEnumerable^ FindEntities( 
   Type^ type,
   EntityState entityState
) 

Parameters

type
The type of Entity to retrieve
entityState
EntityState(s) of entities to return

Return Value

A collection of Entities

Remarks

As the EntityState is a flags enumeration, you can supply multiple OR'ed values to search for multiple entity states. Detached Entities are not associated with an EntityManager and won't be returned.

Requirements

Target Platforms: Windows 98, Windows NT 4.0, Windows Millennium Edition, Windows 2000, Windows XP Home Edition, Windows XP Professional, Windows Server 2003 family, Windows Vista, Windows Server 2008 family

See Also

© 2013 All Rights Reserved.