Spring.NET 1.3.0 RC1 for .NET 2.0 API Reference

DuplicateKeyException Class

Exception thrown when an attempt to insert or update data results in violation of an primary key or unique constraint. Note that this is not necessarily a purely relational concept; unique primary keys are required by most database types.

For a list of all members of this type, see DuplicateKeyException Members .

System.Object
   Exception
      DataAccessException
         NonTransientDataAccessException
            DataIntegrityViolationException
               DuplicateKeyException

[Visual Basic]
<Serializable> _
Public Class DuplicateKeyException
    Inherits DataIntegrityViolationException
[C#]
[Serializable]
public class DuplicateKeyException : DataIntegrityViolationException

Thread Safety

Public static (Shared in Visual Basic) members of this type are safe for multithreaded operations. Instance members are not guaranteed to be thread-safe.

Requirements

Namespace: Spring.Data

Assembly: Spring.Data (in Spring.Data.dll)

See Also

DuplicateKeyException Members | Spring.Data Namespace