EventReceiverDefinitionCollection.Add method
Creates a remote event receiver definition in the collection that is based on the specified event receiver creation information.
Namespace: Microsoft.SharePoint.Client
Assembly: Microsoft.SharePoint.Client (in Microsoft.SharePoint.Client.dll)
Syntax
'Declaration
Public Function Add ( _
eventReceiverCreationInformation As EventReceiverDefinitionCreationInformation _
) As EventReceiverDefinition
'Usage
Dim instance As EventReceiverDefinitionCollection
Dim eventReceiverCreationInformation As EventReceiverDefinitionCreationInformation
Dim returnValue As EventReceiverDefinition
returnValue = instance.Add(eventReceiverCreationInformation)
public EventReceiverDefinition Add(
EventReceiverDefinitionCreationInformation eventReceiverCreationInformation
)
Parameters
eventReceiverCreationInformation
Type: Microsoft.SharePoint.Client.EventReceiverDefinitionCreationInformationThe event receiver creation information from which to create the remote event receiver definition in the collection.
Return value
Type: Microsoft.SharePoint.Client.EventReceiverDefinition
The defined event receiver.
See also
Reference
EventReceiverDefinitionCollection class