Table of contents
TOC
Collapse the table of content
Expand the table of content

ListExtensions.AddRemoteEventReceiver Method

SharePoint Dev Documents|Last Updated: 5/20/2017
|
1 Contributor

Registers a remote event receiver

Namespace:Microsoft.SharePoint.Client
Assembly: OfficeDevPnP.Core.dll

Syntax

public static EventReceiverDefinition AddRemoteEventReceiver(this List list, String name, String url, EventReceiverType eventReceiverType, EventReceiverSynchronization synchronization, Boolean force)

Parameters

list

  Type: Microsoft.SharePoint.Client.List
  The list to process

name

  Type: System.String
  The name of the event receiver (needs to be unique among the event receivers registered on this list)

url

  Type: System.String
  The URL of the remote WCF service that handles the event

eventReceiverType

  Type: Microsoft.SharePoint.Client.EventReceiverType
   Registers a remote event receiver

synchronization

  Type: Microsoft.SharePoint.Client.EventReceiverSynchronization
   Registers a remote event receiver

force

  Type: System.Boolean
  If True any event already registered with the same name will be removed first.

Return Value

Type: EventReceiverDefinition
Returns an EventReceiverDefinition if succeeded. Returns null if failed.

See also

© 2018 Microsoft