Thursday, February 28, 2008

SharePoint (MOSS) Event Handlers using Content Type Deployed as Features

In my post earlier, I wrote how to create event handlers which get associated with all the lists/document libraries of specific types. You can change the elements.xml file as follows to create and register event handlers against it. Later you can associate the content type with any document library for example, to associate the event handler only to that particular library.

Elements.xml file contents would look like this:

<Elements xmlns="">
<ContentType ID="0x010100B6507616196543198ED529CE8720311F" Name="MyContentType" Group="MyGroupForContentType" Description="Event handler enabled content type." Version="0">
<XmlDocument NamespaceURI="">
<spe:Receivers xmlns:spe="">
<Assembly>MyProject, Version=, Culture=neutral,

No comments:

Post a Comment

Feel free to give constructive feedback or let me know if it was helpful.