Compartilhar via


SPDuplicateValuesFoundException Class

Exception to throw if and only if duplicate values are found while inserting or updating items/documents in a list/document library.

Inheritance Hierarchy

System.Object
  System.Exception
    System.ApplicationException
      Microsoft.SharePoint.SPException
        Microsoft.SharePoint.SPDuplicateValuesFoundException

Namespace:  Microsoft.SharePoint
Assembly:  Microsoft.SharePoint (in Microsoft.SharePoint.dll)
Available in Sandboxed Solutions: Yes
Available in SharePoint Online

Syntax

'Declaration
<SerializableAttribute> _
Public Class SPDuplicateValuesFoundException _
    Inherits SPException
'Usage
Dim instance As SPDuplicateValuesFoundException
[SerializableAttribute]
public class SPDuplicateValuesFoundException : SPException

Thread Safety

Any public static (Shared in Visual Basic) members of this type are thread safe. Any instance members are not guaranteed to be thread safe.

See Also

Reference

SPDuplicateValuesFoundException Members

Microsoft.SharePoint Namespace