PrepAway - Latest Free Exam Questions & Answers

Which class should you add to the project?

You create custom code to import content to SharePoint sites.

You create a custom site definition by using Microsoft Visual Studio 2010.

You need to ensure that when a new site that uses the site definition is created, the custom code executes after the site is created.

Which class should you add to the project?

PrepAway - Latest Free Exam Questions & Answers

A.
SPChangeFile

B.
SPItemEventReceiver

C.
SPWebEventReceiver

D.
SPWebProvisioningProvider

Explanation:
MNEMONIC RULE: “new site created = SPWebProvisioningProvider”

Provides a handler for responding to Web site creation.

SPWebProvisioningProvider Class
http://msdn.microsoft.com/en-us/library/microsoft.sharepoint.spwebprovisioningprovider.aspx


Leave a Reply