SPEventReceiverDefinitionCollection.Add method (SPEventReceiverType, String)
建立遠端事件接收器定義根據指定的事件接收器型別和 url 的集合中。
Namespace: Microsoft.SharePoint
Assembly: Microsoft.SharePoint (in Microsoft.SharePoint.dll)
Syntax
'宣告
Public Sub Add ( _
receiverType As SPEventReceiverType, _
url As String _
)
'用途
Dim instance As SPEventReceiverDefinitionCollection
Dim receiverType As SPEventReceiverType
Dim url As String
instance.Add(receiverType, url)
public void Add(
SPEventReceiverType receiverType,
string url
)
參數
receiverType
Type: Microsoft.SharePoint.SPEventReceiverTypeSPEventReceiverType 值,這個值指定事件接收器的型別。
url
Type: System.String字串,表示遠端的事件接收器服務 URL
備註
這個多載的 Add 方法將新的物件加入至記憶體中的事件接收器定義集合,除了 Update 方法呼叫的項目上時,就將項目加入至支援存放區。
請參閱
參照
SPEventReceiverDefinitionCollection class