ISPEventReceiversHost.AddEventReceiverCallback method
新增一個以 web 為基礎 RPC 內容程序的所有預先定義的事件接收器處理程序可供 SharePoint 伺服器集合。
Namespace: Microsoft.SharePoint
Assembly: Microsoft.SharePoint (in Microsoft.SharePoint.dll)
Syntax
'宣告
Sub AddEventReceiverCallback ( _
eventReceiverDefinition As SPEventReceiverDefinition, _
contextList As SPList _
)
'用途
Dim instance As ISPEventReceiversHost
Dim eventReceiverDefinition As SPEventReceiverDefinition
Dim contextList As SPList
instance.AddEventReceiverCallback(eventReceiverDefinition, _
contextList)
void AddEventReceiverCallback(
SPEventReceiverDefinition eventReceiverDefinition,
SPList contextList
)
參數
eventReceiverDefinition
Type: Microsoft.SharePoint.SPEventReceiverDefinition表示事件接收者的 SPEventReceiverDefinition 物件。
contextList
Type: Microsoft.SharePoint.SPListSPList 物件,表示接收者處理程序。