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

Declaration

[DefaultValue(null)]
[TypeConverter("DevExpress.Xpo.Design.ObjectClassInfoTypeConverter, DevExpress.Xpo.v19.2.Design, Version=19.2.99.0, Culture=neutral, PublicKeyToken=c38a27d2243c2672")]
public XPClassInfo ObjectClassInfo { get; set; }
<DefaultValue(Nothing)>
<TypeConverter("DevExpress.Xpo.Design.ObjectClassInfoTypeConverter, DevExpress.Xpo.v19.2.Design, Version=19.2.99.0, Culture=neutral, PublicKeyToken=c38a27d2243c2672")>
Public Property ObjectClassInfo As XPClassInfo
[DefaultValue(null)]
[TypeConverter("DevExpress.Xpo.Design.ObjectClassInfoTypeConverter, DevExpress.Xpo.v19.2.Design, Version=19.2.99.0, Culture=neutral, PublicKeyToken=c38a27d2243c2672")]
public XPClassInfo ObjectClassInfo { get; set; }
<DefaultValue(Nothing)>
<TypeConverter("DevExpress.Xpo.Design.ObjectClassInfoTypeConverter, DevExpress.Xpo.v19.2.Design, Version=19.2.99.0, Culture=neutral, PublicKeyToken=c38a27d2243c2672")>
Public Property ObjectClassInfo As XPClassInfo

Property Value

Type Default Description
XPClassInfo

null

The XPClassInfo of the persistent object stored in the collection.

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();
    }
    // ...
}
See Also