.NET Framework 4.5.2+
.NET Framework 4.5.2+
.NET Standard 2.0+
A newer version of this page is available. Switch to the current version.

Session.FindObject Method

Name Parameters Description
FindObject(XPClassInfo, CriteriaOperator) classInfo, criteria Searches for the first object which matches the specified criteria.
FindObject(XPClassInfo, CriteriaOperator, Boolean) classInfo, criteria, selectDeleted Searches for the first object which matches the specified criteria.
FindObject(PersistentCriteriaEvaluationBehavior, XPClassInfo, CriteriaOperator) criteriaEvaluationBehavior, classInfo, criteria Searches for the first object which matches the specified criteria.
FindObject(PersistentCriteriaEvaluationBehavior, XPClassInfo, CriteriaOperator, Boolean) criteriaEvaluationBehavior, classInfo, criteria, selectDeleted Searches for the first object which matches the specified criteria.
FindObject(PersistentCriteriaEvaluationBehavior, Type, CriteriaOperator) criteriaEvaluationBehavior, objType, criteria Searches for the first object which matches the specified criteria.
FindObject(Type, CriteriaOperator) classType, criteria Searches for the first object which matches the specified criteria.
FindObject(Type, CriteriaOperator, Boolean) classType, criteria, selectDeleted Searches for the first object which matches the specified criteria.
FindObject<ClassType>(CriteriaOperator) criteria Searches for the first object of the type designated by the specified generic type parameter which matches the specified criteria.
FindObject<ClassType>(CriteriaOperator, Boolean) criteria, selectDeleted Searches for the first object of the type designated by the specified generic type parameter which matches the specified criteria.
FindObject<ClassType>(PersistentCriteriaEvaluationBehavior, CriteriaOperator) criteriaEvaluationBehavior, criteria Searches for the first object of the type designated by the specified generic type parameter which matches the specified criteria.