共用方式為


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
)

參數

請參閱

參照

ISPEventReceiversHost interface

ISPEventReceiversHost members

Microsoft.SharePoint namespace