Skip to main content
.NET 8.0+

XPCollection(Session, Object, XPMemberInfo) Constructor

Initializes a new instance of the XPCollection<T> class with specified settings.

Namespace: DevExpress.Xpo

Assembly: DevExpress.Xpo.v24.2.dll

NuGet Package: DevExpress.Xpo

#Declaration

public XPCollection(
    Session session,
    object theOwner,
    XPMemberInfo refProperty
)

#Parameters

Name Type Description
session Session

The Session that will be used to load and save T persistent objects.

theOwner Object

The object that will own the new collection.

refProperty XPMemberInfo

The owner’s property for which the related object collection is created.

#Remarks

This constructor overload is used internally to create a collection that represents a one-to-many or many-to-many relationship for a specific object. In most cases there is no need to use this overload.

To learn more about object relationships, refer to Relationships Between Objects

See Also