Skip to main content
.NET 8.0+

DevExpress v24.2 Update — Your Feedback Matters

Our What's New in v24.2 webpage includes product-specific surveys. Your response to our survey questions will help us measure product satisfaction for features released in this major update and help us refine our plans for our next major release.

Take the survey Not interested

IObjectSpace.GetAssociatedCollectionCriteria(Object, IMemberInfo) Method

Specifies the criteria applied to a specific object’s associated collection property.

Namespace: DevExpress.ExpressApp

Assembly: DevExpress.ExpressApp.v24.2.dll

NuGet Package: DevExpress.ExpressApp

#Declaration

CriteriaOperator GetAssociatedCollectionCriteria(
    object obj,
    IMemberInfo memberInfo
)

#Parameters

Name Type Description
obj Object

An object whose collection property’s criteria must be retrieved.

memberInfo IMemberInfo

An IMemberInfo object supplying metadata on the associated collection property.

#Returns

Type Description
CriteriaOperator

A CriteriaOperator object that is the criteria applied to the specified object’s associated collection property.

#Remarks

When implementing the IObjectSpace interface in the BaseObjectSpace class’s descendant, you don’t have to implement the GetAssociatedCollectionCriteria method. It’s implemented by the BaseObjectSpace class. However, you can override the BaseOBjectSpace.GetAssociatedCollectionCriteriaCore method, which is invoked by the BaseObjectSpace.GetAssociatedCollectionCriteria method, if you need to replace the base implementation with a custom one.

See Also