SPUtility.SetEventReceiverToSynchronous method
設定特定的事件接收器的所有註冊為同步。
Namespace: Microsoft.SharePoint.Utilities
Assembly: Microsoft.SharePoint (in Microsoft.SharePoint.dll)
Syntax
'宣告
Public Shared Sub SetEventReceiverToSynchronous ( _
site As SPSite, _
eventReceiverAssembly As String, _
eventReceiverClass As String, _
eventReceiverType As SPEventReceiverType _
)
'用途
Dim site As SPSite
Dim eventReceiverAssembly As String
Dim eventReceiverClass As String
Dim eventReceiverType As SPEventReceiverTypeSPUtility.SetEventReceiverToSynchronous(site, _
eventReceiverAssembly, eventReceiverClass, _
eventReceiverType)
public static void SetEventReceiverToSynchronous(
SPSite site,
string eventReceiverAssembly,
string eventReceiverClass,
SPEventReceiverType eventReceiverType
)
參數
- site
Type: Microsoft.SharePoint.SPSite
- eventReceiverAssembly
Type: System.String
- eventReceiverClass
Type: System.String
- eventReceiverType
Type: Microsoft.SharePoint.SPEventReceiverType