Share via


SPFeatureReceiver class

Defines methods that are called when a Feature is installed, uninstalled, activated, deactivated, or upgraded.

Inheritance hierarchy

System.Object
  Microsoft.SharePoint.SPFeatureReceiver
    Microsoft.SharePoint.SPMDSFeatureReceiver
    Microsoft.SharePoint.SPSiteAssetsFeatureReceiver
    Microsoft.SharePoint.SPSiteNotebookFeatureReceiver
    Microsoft.SharePoint.SPWikiPageHomePageFeatureReceiver
    Microsoft.SharePoint.SPWikiWelcomeFeatureReceiver

Namespace:  Microsoft.SharePoint
Assembly:  Microsoft.SharePoint (in Microsoft.SharePoint.dll)

Syntax

'Declaration
Public MustInherit Class SPFeatureReceiver
'Usage
Dim instance As SPFeatureReceiver
public abstract class SPFeatureReceiver

Remarks

It is not possible to cancel an installation or uninstallation through Feature events.

Thread safety

Any public static (Shared in Visual Basic) members of this type are thread safe. Any instance members are not guaranteed to be thread safe.

See also

Reference

SPFeatureReceiver members

Microsoft.SharePoint namespace