SPManager.RunUpgradeSession 方法

在会话中升级的持续升级的对象。

命名空间:  Microsoft.SharePoint.Upgrade
程序集:  Microsoft.SharePoint(位于 Microsoft.SharePoint.dll 中)

语法

声明
Public Sub RunUpgradeSession ( _
    iup As IUpgradable, _
    bRecursive As Boolean _
)
用法
Dim instance As SPManager
Dim iup As IUpgradable
Dim bRecursive As Boolean

instance.RunUpgradeSession(iup, bRecursive)
public void RunUpgradeSession(
    IUpgradable iup,
    bool bRecursive
)

参数

  • bRecursive
    类型:System.Boolean

    true以递归方式循环访问root对象 ; 对象。否则为false。

异常

异常 条件
InvalidOperationException

当root时, 空引用(无 在 Visual Basic 中), root不实现IUpgradable接口,或者当该根对象不是SPPersistedObject的一个子类,则抛出。

备注

root参数必须实现IUpgradable接口。

另请参阅

引用

SPManager 类

SPManager 成员

Microsoft.SharePoint.Upgrade 命名空间