Logo 
Search:

Sharepoint Forum

Ask Question   UnAnswered
Home » Forum » Sharepoint       RSS Feeds

How to remove event handler for a List

  Asked By: Sampat    Date: Jun 26    Category: Sharepoint    Views: 5088

I have created event handler(ItemDeleting, ItemUpdating) for a List and it is
working fine.

I want to remove the same event handlers attached to the list

please can any body let me know how to do that.

Share: 

 

7 Answers Found

 
Answer #1    Answered By: Karla Morrison     Answered On: Jun 26

If you installed them using a Feature, deactivate and Uninstall the
Feature then remove  the .DLL from the GAC.

 
Answer #2    Answered By: Patricia Richardson     Answered On: Jun 26

I am using console application to add events to a list.

 
Answer #3    Answered By: Alexandra Patterson     Answered On: Jun 26

other reply for how to gain access to the instance of the
EventHandler and then call the Delete Method. You can also iterate
through the EventReceivers collection using a ForEach until you find the
EventReceiverDefinition with the right name. It's easier if you don't
know the GUID.

 
Answer #4    Answered By: Deven Ghurye     Answered On: Jun 26

Deactivate the Feature.................

 
Answer #5    Answered By: Stefanie Ruiz     Answered On: Jun 26

To remove  the event  receiver in code use the following:

SPEventReceiverDefinition eventDef = list.EventReceivers[Guid];
eventDef.Delete();

You may want to check out the SharePoint Tips Utility Pack:
http://www.codeplex.com/spstipsUtilityPack.

 
Answer #6    Answered By: Damon Garner     Answered On: Jun 26

and thanks for link to download, tool

 
Answer #7    Answered By: Joanne Greer     Answered On: Jun 26

I am using a console application to add events to a list.

 
Didn't find what you were looking for? Find more on How to remove event handler for a List Or get search suggestion and latest updates.




Tagged: