SPDuplicateObjectException class
代表建立物件,具有相同的屬性,以另一個物件時,會擲回例外狀況。
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
'宣告
<SerializableAttribute> _
<SharePointPermissionAttribute(SecurityAction.LinkDemand, ObjectModel := True)> _
Public NotInheritable Class SPDuplicateObjectException _
Inherits ArgumentException
'用途
Dim instance As SPDuplicateObjectException
[SerializableAttribute]
[SharePointPermissionAttribute(SecurityAction.LinkDemand, ObjectModel = true)]
public sealed class SPDuplicateObjectException : ArgumentException
備註
SPDuplicateObjectException會擲回,例如,當嘗試建立資料庫與現有資料庫相同的名稱。
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.