AliveTypeExtensions.FindEntity Method

NOTE: This member is now obsolete.Use objectSpace.Xafari().FindObject() method instead.

Searches for the first object of the specified type, matching the specified criteria.

Namespace: Xafari
Assembly: Xafari.BC (in Xafari.BC.dll)


  • c#
  • VB

[Obsolete("Use objectSpace.Xafari().FindObject() method instead.")]
public static object FindEntity(
     this IObjectSpaceobjectSpace,
     CriteriaOperatorcriteria = null,
     boolinTransaction = false

<Obsolete("Use objectSpace.Xafari().FindObject() method instead.")> _
<System.Runtime.CompilerServices.Extension> _
Public Shared Function FindEntity(ByVal , As IObjectSpaceobjectSpace, ByVal , As TypeentityType, Optional ByVal = As CriteriaOperatorcriteria = = Nothing, Optional ByVal = As boolinTransaction = = False) As Object
End Function





A Type object which represents the type of objects to search for.


A CriteriaOperator which specifies the criteria for object selection.


true if all objects (in the database and retrieved) are processed by the specified criteria; otherwise, false.



Return Value

An object which represents the first persistent object which matches the specified criteria. null (Nothing in Visual Basic) if there is no persistent object which matches the criteria.


collallSee Also