Share via


SPAppInstance.GetPreviousAppVersion method

Retrieves the version of the app that is being upgraded from during an upgrade.

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

Syntax

'Declaration
Public Function GetPreviousAppVersion As SPApp
'Usage
Dim instance As SPAppInstance
Dim returnValue As SPApp

returnValue = instance.GetPreviousAppVersion()
public SPApp GetPreviousAppVersion()

Return value

Type: Microsoft.SharePoint.Administration.SPApp
The version of the app being upgraded from. Otherwise, a null reference (Nothing in Visual Basic).

See also

Reference

SPAppInstance class

SPAppInstance members

Microsoft.SharePoint.Administration namespace