SPEventReceiverSynchronization Enumeration
SharePoint 2010
Enumeration of values specifying the synchronization state for the specified event receiver.
Assembly: Microsoft.SharePoint (in Microsoft.SharePoint.dll)
Available in Sandboxed Solutions: Yes
Available in SharePoint Online
| Member name | Description | |
|---|---|---|
| Default | Indicates to run the event receiver synchronously if it is a Before event. Indicates to run the event receiver asynchronously if it is an After event. | |
| Synchronous | Indicates to run the event receiver synchronously. | |
| Asynchronous | Indicates to run the event receiver asynchronously. |
Definition
Synchronous processing provides the ability to run the event in the same thread before sending the Web response back to the browser.
Asynchronous event receivers are processed by a separate thread, so processing does not block the flow of code execution. The separate job thread for asynchronous processing is started by methods that reside in classes other than the SPEventReceiverDefinition class.
Asynchronous event receivers are processed by a separate thread, so processing does not block the flow of code execution. The separate job thread for asynchronous processing is started by methods that reside in classes other than the SPEventReceiverDefinition class.
- 7/29/2011
- DPalfery