Back to Devexpress

AssociationElementTypeMissingException Class

xpo-devexpress-dot-xpo-dot-exceptions-a50a4c94.md

latest1.9 KB
Original Source

AssociationElementTypeMissingException Class

An exception that is thrown when the elementType parameter is not specified in the AssociationAttribute attribute.

Namespace : DevExpress.Xpo.Exceptions

Assembly : DevExpress.Xpo.v25.2.dll

NuGet Package : DevExpress.Xpo

Declaration

csharp
public class AssociationElementTypeMissingException :
    Exception
vb
Public Class AssociationElementTypeMissingException
    Inherits Exception

Remarks

When specifying the AssociationAttribute for a collection property you need to specify the attribute’s elementType parameter. This should identify the type of items stored in the current collection. If this parameter is omitted an AssociationElementTypeMissingException exception is raised.

Solution:

Inheritance

Object Exception AssociationElementTypeMissingException

See Also

AssociationElementTypeMissingException Members

AssociationAttribute

Relationships Between Objects

DevExpress.Xpo.Exceptions Namespace