SPEventReceiverDefinition.Synchronization property
取得指定的事件接收器的同步處理狀態的列舉型別。
Namespace: Microsoft.SharePoint
Assembly: Microsoft.SharePoint (in Microsoft.SharePoint.dll)
Syntax
'宣告
Public Property Synchronization As SPEventReceiverSynchronization
Get
Set
'用途
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
傳回Default、 Asynchronous或Synchronous。
備註
After事件接收器可以是同步或非同步。Before事件接收者只能同步。
如果這個屬性設定為Default的Before事件,此方法等於Synchronous。如果這個屬性設定為Default的After事件,此方法等於Asynchronous。
請參閱
參照
SPEventReceiverDefinition class