다음을 통해 공유


SPDuplicateObjectException class

Represents an exception that is thrown when creating an object that has the same properties as another object.

Inheritance hierarchy

System.Object
  System.Exception
    System.SystemException
      System.ArgumentException
        Microsoft.SharePoint.Administration.SPDuplicateObjectException

Namespace:  Microsoft.SharePoint.Administration
Assembly:  Microsoft.SharePoint (in Microsoft.SharePoint.dll)

Syntax

'Declaration
<SerializableAttribute> _
<SharePointPermissionAttribute(SecurityAction.LinkDemand, ObjectModel := True)> _
Public NotInheritable Class SPDuplicateObjectException _
    Inherits ArgumentException
'Usage
Dim instance As SPDuplicateObjectException
[SerializableAttribute]
[SharePointPermissionAttribute(SecurityAction.LinkDemand, ObjectModel = true)]
public sealed class SPDuplicateObjectException : ArgumentException

Remarks

An SPDuplicateObjectException is thrown, for example, when attempting to create a database with the same name as an existing database.

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

SPDuplicateObjectException members

Microsoft.SharePoint.Administration namespace