Partilhar via


SPConcurrencyException Class

Represents an exception that is thrown to prevent overwriting settings when changes made to administration on one computer within a server farm conflict with settings on another computer.

Inheritance Hierarchy

System.Object
  System.Exception
    Microsoft.SharePoint.Administration.SPDatabaseException
      Microsoft.SharePoint.Administration.SPConcurrencyException
        Microsoft.SharePoint.Administration.SPDeletedConcurrencyException
        Microsoft.SharePoint.Administration.SPUpdatedConcurrencyException

Namespace:  Microsoft.SharePoint.Administration
Assembly:  Microsoft.SharePoint (in Microsoft.SharePoint.dll)
Available in Sandboxed Solutions: No

Syntax

'Declaration
<SharePointPermissionAttribute(SecurityAction.InheritanceDemand, ObjectModel := True)> _
<SharePointPermissionAttribute(SecurityAction.LinkDemand, ObjectModel := True)> _
Public Class SPConcurrencyException _
    Inherits SPDatabaseException
'Usage
Dim instance As SPConcurrencyException
[SharePointPermissionAttribute(SecurityAction.InheritanceDemand, ObjectModel = true)]
[SharePointPermissionAttribute(SecurityAction.LinkDemand, ObjectModel = true)]
public class SPConcurrencyException : SPDatabaseException

Remarks

The SPConcurrencyException exception is typically raised when subclasses of the SPPersistedObject class are updated asynchronously. Configuration changes should occur as a direct result of an administrative action (i.e., in the same Web request, or in the same command line execution). Alternatively, it is up to the developer to provide synchronization of updates of the object across multiple processes and multiple machines. 

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

SPConcurrencyException Members

Microsoft.SharePoint.Administration Namespace