Sharepoint Removing event handler to the list with the help of a generic Console Application
Hi,
As described in my earlier Post, many a time developer
needs to add the event handler to list for which I shared
a console application. The same way many a times we need
to remove the event handler form the list. To do this I
have created another console application which is
available as download
here.
The console application does the work of removing the
event handler to the list. As before the console
application needs 5 different values from the appsettings
section of the configuration file.
-
SiteCollectionURL
- Takes the URL of the Site where the list resides.
Example – “http://www.example.com”
-
RecordListName
– Takes the name of the list on which the event handler
should be attached. Example – “ListOfFriend”
-
EventHandlerName
– Name of the eventhandler that should be applied like
ItemUpdating. If there are more than one event handler,
then user can pass the venet handler as a comma
seperated list ItemDeleting,ItemUpdating
-
ClassName
– FullName of the class where the code for the event
handler has been written. Example –
SharePoint.Vikram.EventHandlers.FriendList
-
AssemblyName
– Name of the assembly where the class for the event
handler - SharePoint.Vikram.EventHandlers,
Version=1.0.0.0, Culture=neutral,
PublicKeyToken=faeb5f91b6c4621e
Vikram