Pergunta

I am following this tutorial but for 2010 http://msdn.microsoft.com/en-us/library/cc406686%28office.12%29.aspx

I am in this part

How can I make a feature receiver in sp 2010?

Feature Receiver

Windows SharePoint Services 3.0 added the Feature framework, which provides SharePoint site developers and owners a way to inject functionality into existing sites and deploy custom solutions, such as workflow templates that are developed in Microsoft Visual Studio. Features can also be used for timer job deployment. Although the Feature schema does not provide a way to do this, the Feature Activated and Deactivating events can be caught with custom code to handle the installation and uninstallation of a timer job.

Foi útil?

Solução

In your Visual Studio 2010 solution, select the feature you want to have a receiver. Then right click the same and from the context menu, select event receivers. This will add another cs file in the feature structure/folder. This file has all the necessary events like FeatureActivated FeatureInstalled etc.. commented out initially. From there you can uncomment the desired event say FeatureActivated and write the code in there.

Licenciado em: CC-BY-SA com atribuição
Não afiliado a sharepoint.stackexchange
scroll top