SPEventReceiverSynchronization Enumeration

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

public enum SPEventReceiverSynchronization

Member nameDescription
DefaultIndicates 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.
SynchronousIndicates to run the event receiver synchronously.
AsynchronousIndicates to run the event receiver asynchronously.

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