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

XPCollection(Session, Object, XPMemberInfo) Constructor

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

Namespace: DevExpress.Xpo

Assembly: DevExpress.Xpo.v20.1.dll

Declaration

public XPCollection(
    Session session,
    object theOwner,
    XPMemberInfo refProperty
)
Public Sub New(
    session As Session,
    theOwner As Object,
    refProperty As XPMemberInfo
)

Parameters

Name Type Description
session Session

The Session that will be used to load and save 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