0

Is it possible to use the same even receiver on two different SPList, using ListUrl ?

Something like the following :

<Receivers ListUrl="Liste2">
    <Receiver>
      <Name>DocumentSubmissionEventHandlerItemAdding</Name>
      <Type>ItemAdding</Type>
      <Assembly>$SharePoint.Project.AssemblyFullName$</Assembly>
      <Class>My.SharePoint.EventHandlers.DocumentSubmissionEventHandler.DocumentSubmissionEventHandler</Class>
      <SequenceNumber>10000</SequenceNumber>
    </Receiver>
  </Receivers>
<Receivers ListUrl="Liste2">
    <Receiver>
      <Name>DocumentSubmissionEventHandlerItemAdding</Name>
      <Type>ItemAdding</Type>
      <Assembly>$SharePoint.Project.AssemblyFullName$</Assembly>
      <Class>My.SharePoint.EventHandlers.DocumentSubmissionEventHandler.DocumentSubmissionEventHandler</Class>
      <SequenceNumber>10000</SequenceNumber>
    </Receiver>
  </Receivers>

I tried this but got an error.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Browse other questions tagged or ask your own question.