SPDuplicateValuesFoundException members

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

The SPDuplicateValuesFoundException type exposes the following members.

Constructors

  Name Description
Public method SPDuplicateValuesFoundException() Initializes a new instance of the [Microsoft.SharePoint.SPDuplicateValuesFoundException] class.
Public method SPDuplicateValuesFoundException(String) Initializes a new instance of the [Microsoft.SharePoint.SPDuplicateValuesFoundException] class using the specified error message.
Protected method SPDuplicateValuesFoundException(SerializationInfo, StreamingContext) Initializes a new instance of the [Microsoft.SharePoint.SPDuplicateValuesFoundException] class based on the specified serialization data and the stream context.
Public method SPDuplicateValuesFoundException(String, Exception) Initializes a new instance of the [Microsoft.SharePoint.SPDuplicateValuesFoundException] exception class using the specified error message and inner exception that is the cause of the current exception.

Top

Properties

  Name Description
Public property Data (Inherited from Exception.)
Public property ErrorCode Gets an integer that identifies the exception. (Inherited from SPException.)
Public property HelpLink (Inherited from Exception.)
Protected property HResult (Inherited from Exception.)
Public property InnerException (Inherited from Exception.)
Public property Message (Inherited from Exception.)
Public property NativeErrorMessage Gets the native code error message that is associated with this SPException object. (Inherited from SPException.)
Public property NativeStackTrace Gets the native code stack trace associated with this SPException object. (Inherited from SPException.)
Public property Source (Inherited from Exception.)
Public property StackTrace (Inherited from Exception.)
Public property TargetSite (Inherited from Exception.)
Public property UniqueFieldsWithDuplicateValues Gets the IDs of Unique Fields in the list with duplicate values.

Top

Methods

  Name Description
Public method Equals (Inherited from Object.)
Protected method Finalize (Inherited from Object.)
Public method GetBaseException (Inherited from Exception.)
Public method GetHashCode (Inherited from Object.)
Public method GetObjectData Saves information about the exception for serialization. (Overrides SPException.GetObjectData(SerializationInfo, StreamingContext).)
Public method GetType (Inherited from Exception.)
Protected method MemberwiseClone (Inherited from Object.)
Public method ToString (Inherited from Exception.)

Top

See also

Reference

SPDuplicateValuesFoundException class

Microsoft.SharePoint namespace