Tag Archives: generics

(SPWeb)properties.Feature.Parent no more … a handy Feature Receiver Base Class

If you are writing SharePoint feature receivers often, you will find there are several lines of code common to just about every feature receiver: A cast of properties.Feature.Parent to the appropriate scope (either SPWeb, SPSite, SPWebApplication, or SPFarm) Empty implementations of FeatureInstalled and FeatureUninstalling Provided below is an abstract generic class that now serves as… Read More »