I added a new ItemUpdated Event Receiver inside my enterprise wiki site collection inside sharepoint server 2013. and i defined the following:-
- event reciever will get fired when and item was updated.
- it should fire on "Wiki Pages library".
- here is the generated element.xml file:-
<Receivers ListTemplateId="119"> <Receiver> <Name>EventReceiver1ItemUpdated</Name> <Type>ItemUpdated</Type> <Assembly>$SharePoint.Project.AssemblyFullName$</Assembly> <Class>UpdateWikiPageTitleandTerm.EventReceiver1.EventReceiver1</Class> <SequenceNumber>10000</SequenceNumber> </Receiver> </Receivers> </Elements>
- the scope of the event receiver is "Web".
now when i edit a wiki page the event receiver will fire correctly, but also if i upload a new image inside the images library and then i edit the images properties the event receiver will get fired, also when i upload a new document inside the document library and then i edit it properties the event receiver will get fire... so not sure why the event receiver is not only firing on "Wiki Pages libraries" ?