.NET Framework 4.5.2+
.NET Framework 4.5.2+
.NET Standard 2.0+

XPCursor(Session, Type, CriteriaOperator, SortProperty[]) Constructor

Initializes a new instance of the XPCursor class with the specified settings.

Namespace: DevExpress.Xpo

Assembly: DevExpress.Xpo.v19.2.dll

Declaration

public XPCursor(
    Session session,
    Type objType,
    CriteriaOperator theCriteria,
    params SortProperty[] sortProperties
)
Public Sub New(
    session As Session,
    objType As Type,
    theCriteria As CriteriaOperator,
    ParamArray sortProperties As SortProperty()
)
public XPCursor(
    Session session,
    Type objType,
    CriteriaOperator theCriteria,
    params SortProperty[] sortProperties
)
Public Sub New(
    session As Session,
    objType As Type,
    theCriteria As CriteriaOperator,
    ParamArray sortProperties As SortProperty()
)

Parameters

Name Type Description
session Session

A Session object which represents the session that will be used to load and save persistent objects. This value is assigned to the XPCursor.Session property.

objType Type

The type of persistent objects to include in the collection.

theCriteria CriteriaOperator

A CriteriaOperator object that specifies the filter criteria.

sortProperties SortProperty[]

An array of SortProperty objects that specify the page able collection's sort order. These objects are added to the XPCursor.Sorting collection.

Parameters

Name Type Description
session Session

A Session object which represents the session that will be used to load and save persistent objects. This value is assigned to the XPCursor.Session property.

objType Type

The type of persistent objects to include in the collection.

theCriteria CriteriaOperator

A CriteriaOperator object that specifies the filter criteria.

sortProperties SortProperty[]

An array of SortProperty objects that specify the page able collection's sort order. These objects are added to the XPCursor.Sorting collection.

See Also