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

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.v20.2.dll


public XPClassInfo ObjectClassInfo { get; set; }
Public Property ObjectClassInfo As XPClassInfo

Property Value

Type Description

The XPClassInfo of the persistent object stored in the collection.


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:
    // ...
See Also