SPFeatureReceiver.FeatureUpgrading 方法
处理升级功能时引发的事件。
命名空间: Microsoft.SharePoint
程序集: Microsoft.SharePoint(位于 Microsoft.SharePoint.dll 中)
语法
声明
Public Overridable Sub FeatureUpgrading ( _
properties As SPFeatureReceiverProperties, _
upgradeActionName As String, _
parameters As IDictionary(Of String, String) _
)
用法
Dim instance As SPFeatureReceiver
Dim properties As SPFeatureReceiverProperties
Dim upgradeActionName As String
Dim parameters As IDictionary(Of String, String)
instance.FeatureUpgrading(properties, _
upgradeActionName, parameters)
public virtual void FeatureUpgrading(
SPFeatureReceiverProperties properties,
string upgradeActionName,
IDictionary<string, string> parameters
)
参数
properties
类型:Microsoft.SharePoint.SPFeatureReceiverProperties事件的属性。
upgradeActionName
类型:System.String要执行的自定义升级操作的名称。
parameters
类型:System.Collections.Generic.IDictionary<String, String>参数名称和自定义操作的值。
备注
如果此方法的重写实现只有一个升级操作, upgradeActionName的值可以是 null 。
在功能过程中调用此方法升级时的功能的 XML 中包含一个或多个CustomUpgradeAction标记,如下面的示例中所示:
<UpgradeActions>
<CustomUpgradeAction Name="text">
...
</CustomUpgradeAction>
</UpgradeActions>