This topic has not yet been rated - Rate this topic

SPWikiPageHomePageFeatureReceiver.FeatureActivated Method

SharePoint 2010

Creates a wiki page, provisions it with web parts, and set it as the web root folder's welcome page URL.

Namespace:  Microsoft.SharePoint
Assembly:  Microsoft.SharePoint (in Microsoft.SharePoint.dll)
Available in Sandboxed Solutions: No
public override void FeatureActivated(
	SPFeatureReceiverProperties properties
)

Parameters

properties
Type: Microsoft.SharePoint.SPFeatureReceiverProperties
A [Microsoft.SharePoint.SPFeatureReceiverProperties] class that provides access to event properties, such as the Feature instance that has been created, the Feature definition, or the parent object of the Feature.

When the Wiki Page Home Page feature is activated, we create a wiki page, provision it with web parts, and set it as the web root folder's welcome page URL. The old welcome page URL is stored.

Did you find this helpful?
(1500 characters remaining)
Community Content Add
Annotations FAQ