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

Return value

Type: Microsoft.SharePoint.Client.EventReceiverDefinition
The defined event receiver.

See also

Reference

EventReceiverDefinitionCollection class

EventReceiverDefinitionCollection members

Microsoft.SharePoint.Client namespace