DevForce Help Reference
FindEntities(Type,EntityState) Method


The type of Entity to retrieve
EntityState(s) of entities to return
Retrieves all entities of a specified type with the specified entity state(s) from cache.
Syntax
'Declaration
 
Public Overloads Function FindEntities( _
   ByVal type As Type, _
   ByVal entityState As EntityState _
) As IEnumerable
'Usage
 
Dim instance As EntityManager
Dim type As Type
Dim entityState As EntityState
Dim value As IEnumerable
 
value = instance.FindEntities(type, entityState)
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.
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

EntityManager Class
EntityManager Members
Overload List

Send Feedback