Back to Devexpress

RequiredAttributeMissingException Class

xpo-devexpress-dot-xpo-dot-exceptions-c29a3f13.md

latest1.5 KB
Original Source

RequiredAttributeMissingException Class

An exception that is thrown when an attribute with the specified name cannot be found for a specific property.

Namespace : DevExpress.Xpo.Exceptions

Assembly : DevExpress.Xpo.v25.2.dll

NuGet Package : DevExpress.Xpo

Declaration

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

Remarks

This exception is raised when a property doesn’t contain a specific attribute. Use the exception object’s data to get the name of the property and attribute.

Solution:

  • add the specified attribute to the property;

  • ensure that an appropriate property is used (use the Stack Trace to locate the problem code).

Inheritance

Object Exception RequiredAttributeMissingException

See Also

RequiredAttributeMissingException Members

DevExpress.Xpo.Exceptions Namespace