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)

Syntax

'Declaration
<SharePointPermissionAttribute(SecurityAction.LinkDemand, ObjectModel := True)> _
<SharePointPermissionAttribute(SecurityAction.InheritanceDemand, ObjectModel := True)> _
Public Class SPConcurrencyException _
    Inherits SPDatabaseException
'Usage
Dim instance As SPConcurrencyException
[SharePointPermissionAttribute(SecurityAction.LinkDemand, ObjectModel = true)]
[SharePointPermissionAttribute(SecurityAction.InheritanceDemand, 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