다음을 통해 공유


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.Administration.Claims.SPClaimHierarchyProviderFeatureReceiver
    Microsoft.SharePoint.Administration.Claims.SPClaimProviderFeatureReceiver
    Microsoft.SharePoint.SPWikiPageHomePageFeatureReceiver
    Microsoft.SharePoint.SPWikiWelcomeFeatureReceiver
    Microsoft.SharePoint.Workflow.SPDeclarativeWorkflowProvisioningFeatureReceiver
    Microsoft.SharePoint.Workflow.SPDeclarativeWorkflowProvisioningFullTrustOnlyFeatureReceiver

Namespace:  Microsoft.SharePoint
Assembly:  Microsoft.SharePoint (in Microsoft.SharePoint.dll)
Available in Sandboxed Solutions: Yes
Available in SharePoint Online

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