SPManager.RunUpgradeSession Method

Upgrades a persisted upgradable object in a session.

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

Syntax

'Declaration
Public Sub RunUpgradeSession ( _
    iup As IUpgradable, _
    bRecursive As Boolean _
)
'Usage
Dim instance As SPManager
Dim iup As IUpgradable
Dim bRecursive As Boolean

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

Parameters

  • bRecursive
    Type: System.Boolean

    true to recursively iterate through the root object; otherwise, false.

Exceptions

Exception Condition
InvalidOperationException

Thrown when root is a null reference (Nothing in Visual Basic), when root does not implement the IUpgradable interface, or when the root object is not a subclass of SPPersistedObject.

Remarks

The root parameter must implement the IUpgradable interface.

See Also

Reference

SPManager Class

SPManager Members

Microsoft.SharePoint.Upgrade Namespace