SPWikiPageHomePageFeatureReceiver.FeatureActivated Method

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

Syntax

'Declaration
Public Overrides Sub FeatureActivated ( _
    properties As SPFeatureReceiverProperties _
)
'Usage
Dim instance As SPWikiPageHomePageFeatureReceiver
Dim properties As SPFeatureReceiverProperties

instance.FeatureActivated(properties)
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.

Remarks

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.

See Also

Reference

SPWikiPageHomePageFeatureReceiver Class

SPWikiPageHomePageFeatureReceiver Members

Microsoft.SharePoint Namespace