SPFeatureReceiver.FeatureUpgrading method

Handles the event that is raised when a Feature is upgraded.

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

Syntax

public virtual void FeatureUpgrading(
    SPFeatureReceiverProperties properties,
    string upgradeActionName,
    IDictionary<string, string> parameters
)

Parameters

  • upgradeActionName
    Type: System.String

    The name of the custom upgrade action to execute.

Remarks

The value of the upgradeActionName can be null if the override of this method implements only one upgrade action.

This method is called during a Feature upgrade when the XML of the Feature contains one or more CustomUpgradeAction tags, as shown in the following example:

<UpgradeActions>
  <CustomUpgradeAction Name="text">
    ...
  </CustomUpgradeAction>
</UpgradeActions>

See also

Reference

SPFeatureReceiver class

SPFeatureReceiver members

Microsoft.SharePoint namespace