EventReceiverDefinitionCollection.Add 方法
根據指定的事件接收器建立資訊集合中建立遠端事件接收器定義。
命名空間: Microsoft.SharePoint.Client
組件: Microsoft.SharePoint.Client.Silverlight (在 Microsoft.SharePoint.Client.Silverlight.dll 中); Microsoft.SharePoint.Client.Phone (在 Microsoft.SharePoint.Client.Phone.dll 中) Microsoft.SharePoint.Client (在 Microsoft.SharePoint.Client.dll 中)
語法
'宣告
Public Function Add ( _
eventReceiverCreationInformation As EventReceiverDefinitionCreationInformation _
) As EventReceiverDefinition
'用途
Dim instance As EventReceiverDefinitionCollection
Dim eventReceiverCreationInformation As EventReceiverDefinitionCreationInformation
Dim returnValue As EventReceiverDefinition
returnValue = instance.Add(eventReceiverCreationInformation)
public EventReceiverDefinition Add(
EventReceiverDefinitionCreationInformation eventReceiverCreationInformation
)
參數
eventReceiverCreationInformation
類型:Microsoft.SharePoint.Client.EventReceiverDefinitionCreationInformation用來建立遠端事件接收器定義集合中事件接收器建立資訊。
傳回值
類型:Microsoft.SharePoint.Client.EventReceiverDefinition
已定義的事件接收器。
請參閱
參照
EventReceiverDefinitionCollection 類別