Back to Devexpress

DifferentObjectsWithSameKeyException Class

xpo-devexpress-dot-xpo-dot-exceptions-5113cd51.md

latest1.3 KB
Original Source

DifferentObjectsWithSameKeyException Class

An exception that is thrown when two objects within the current session have the same key.

Namespace : DevExpress.Xpo.Exceptions

Assembly : DevExpress.Xpo.v25.2.dll

NuGet Package : DevExpress.Xpo

Declaration

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

Remarks

Objects must have unique key values. This exception is thrown when the current session have two objects with the same key values.

Solution:

  • check your code that modifies object key values.

Inheritance

Object Exception DifferentObjectsWithSameKeyException

See Also

DifferentObjectsWithSameKeyException Members

DevExpress.Xpo.Exceptions Namespace