0

What is the difference between Event Receivers for custom lists and a document libraries?

The Document library Events are firing even when we select a custom list event receiver.

What exactly is the difference between these two?

1 Answer 1

1

There is no difference. Type of list defines the destination content type in elements.xml in event reciever feature

6
  • then why a seperate event receiver for document libraries??
    – Sooraj
    Commented Sep 17, 2014 at 13:58
  • It just makes generation of elements.xml easier: "<Receivers ListTemplateId="100">" for Custom List and "<Receivers ListTemplateId="101">" for Document Library. Commented Sep 17, 2014 at 14:09
  • But number of events available for document libraries will be more right?
    – Sooraj
    Commented Sep 17, 2014 at 14:18
  • No, available events are the same. Commented Sep 17, 2014 at 14:21
  • What about check in , check out events?
    – Sooraj
    Commented Sep 17, 2014 at 14:26

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.