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.Booleantrue 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.