SPDuplicateObjectException class
Representa uma exceção que é lançada quando a criação de um objeto que tem as mesmas propriedades que um outro objeto.
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
'Declaração
<SerializableAttribute> _
<SharePointPermissionAttribute(SecurityAction.LinkDemand, ObjectModel := True)> _
Public NotInheritable Class SPDuplicateObjectException _
Inherits ArgumentException
'Uso
Dim instance As SPDuplicateObjectException
[SerializableAttribute]
[SharePointPermissionAttribute(SecurityAction.LinkDemand, ObjectModel = true)]
public sealed class SPDuplicateObjectException : ArgumentException
Comentários
Um SPDuplicateObjectException é lançada, por exemplo, ao tentar criar um banco de dados com o mesmo nome de um banco de dados existente.
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.