Back to Devexpress

XPMemberInfo.Owner Property

xpo-devexpress-dot-xpo-dot-metadata-dot-xpmemberinfo-d7f5a657.md

latest2.4 KB
Original Source

XPMemberInfo.Owner Property

Gets the XPClassInfo object which owns this XPMemberInfo object.

Namespace : DevExpress.Xpo.Metadata

Assembly : DevExpress.Xpo.v25.2.dll

NuGet Package : DevExpress.Xpo

Declaration

csharp
public XPClassInfo Owner { get; }
vb
Public ReadOnly Property Owner As XPClassInfo

Property Value

TypeDescription
XPClassInfo

An XPClassInfo object which owns this XPMemberInfo object.

|

The following code snippet (auto-collected from DevExpress Examples) contains a reference to the Owner property.

Note

The algorithm used to collect these code examples remains a work in progress. Accordingly, the links and snippets below may produce inaccurate results. If you encounter an issue with code examples below, please use the feedback form on this page to report the issue.

XPO_how-to-create-persistent-classes-mapped-to-tables-with-a-composite-primary-key-at-runtime-e4606/CS/XpoConsoleApplication/XPComplexCustomMemberInfo.cs#L29

csharp
public XPComplexCustomMemberInfo AddSubMember(string propertyName, Type propertyType, params Attribute[] attributes) {
    XPComplexCustomMemberInfo memeberInfo = new XPComplexCustomMemberInfo(this.Owner, propertyName, propertyType, attributes);
    AddSubMember(memeberInfo);

See Also

Members

XPMemberInfo Class

XPMemberInfo Members

DevExpress.Xpo.Metadata Namespace