Inconvenient class-naming with feature receiver and scope=”Farm”
Writing feature receivers during SharePoint customizing a common task. Depending on the scope your features belongs to your code looks similar to the following: public override void FeatureActivated(SPFeatureReceiverProperties properties) { // Scope="Web" SPWeb web = properties.Feature.Parent as SPWeb; // Scope="Site" SPSite site = properties.Feature.Parent as SPSite; // Scope="WebApplication" SPWebApplication app = properties.Feature.Parent as [...]
- December 11th
- No Comments