Skip to main content
.NET Framework 4.6.2+

XPCollection.ObjectClassInfo Property

Gets or sets the metadata information that describes the type of objects stored in the current collection.

Namespace: DevExpress.Xpo

Assembly: DevExpress.Xpo.v24.2.dll

Declaration

[DefaultValue(null)]
public XPClassInfo ObjectClassInfo { get; set; }

Property Value

Type Default Description
XPClassInfo null

The XPClassInfo of the persistent object stored in the collection.

Remarks

Do not change this property manually in your code as it is intended to provide design-time support for the component. To specify the type of objects that will be stored in the collection use an appropriate XPCollection constructor.

By default, assemblies from project references are not loaded into the current application domain by Visual Studio. As a result, types declared in external assemblies are not added to the ObjectClassInfo combo box in the designer. To trigger loading types from a specific assembly, access any of these types in the form/component initialization code.

public partial class MyForm : XtraForm {
    public MyForm() {
        // Triggers loading MyAssembly.Model assembly into the AppDomain:
        typeof(MyAssembly.Model.MyObject).ToString();
        InitializeComponent();
    }
    // ...
}

The following code snippet (auto-collected from DevExpress Examples) contains a reference to the ObjectClassInfo 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.

See Also