1 out of 1 rated this helpful - Rate this topic

SPEventReceiverSynchronization Enumeration

SharePoint 2010

Enumeration of values specifying the synchronization state for the specified event receiver.

Namespace:  Microsoft.SharePoint
Assembly:  Microsoft.SharePoint (in Microsoft.SharePoint.dll)
Available in Sandboxed Solutions: Yes
Available in SharePoint Online
[SubsetCallableTypeAttribute]
public enum SPEventReceiverSynchronization
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.

Allows you to specify the synchronization state when defining an event receiver – either synchronous or asynchronous.

Did you find this helpful?
(1500 characters remaining)
Community Content Add
Annotations FAQ
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.