SPEventReceiverDefinition.Synchronization property

Gets an enumeration that specifies the synchronization state for the event receiver.

Namespace:  Microsoft.SharePoint
Assembly:  Microsoft.SharePoint (in Microsoft.SharePoint.dll)

Syntax

'Declaration
Public Property Synchronization As SPEventReceiverSynchronization
    Get
    Set
'Usage
Dim instance As SPEventReceiverDefinition
Dim value As SPEventReceiverSynchronization

value = instance.Synchronization

instance.Synchronization = value
public SPEventReceiverSynchronization Synchronization { get; set; }

Property value

Type: Microsoft.SharePoint.SPEventReceiverSynchronization
Returns Default, Asynchronous, or Synchronous.

Remarks

After event receivers can be synchronous or asynchronous; Before event receivers can only be synchronous.

If this property is set to Default for a Before event, this is equivalent to Synchronous. If this property is set to Default for an After event, this is equivalent to Asynchronous.

See also

Reference

SPEventReceiverDefinition class

SPEventReceiverDefinition members

Microsoft.SharePoint namespace