IVsSolutionEventsProjectUpgrade.OnAfterUpgradeProject Method (IVsHierarchy, UInt32, String, SYSTEMTIME, IVsUpgradeLogger)
Visual Studio 2015
Defines a method to call after a project upgrade.
Assembly: Microsoft.VisualStudio.Shell.Interop.8.0 (in Microsoft.VisualStudio.Shell.Interop.8.0.dll)
int OnAfterUpgradeProject( IVsHierarchy pHierarchy, uint fUpgradeFlag, string bstrCopyLocation, SYSTEMTIME stUpgradeTime, IVsUpgradeLogger pLogger )
Parameters
- pHierarchy
-
Type:
Microsoft.VisualStudio.Shell.Interop.IVsHierarchy
[in] Pointer to the IVsHierarchy interface of the project.
- fUpgradeFlag
-
Type:
System.UInt32
[in] Integer. Flag indicating the nature of the upgrade. Values taken from the __VSPPROJECTUPGRADEVIAFACTORYFLAGS enumeration. Will only be PUVFF_COPYUPGRADE, PUVFF_SXSBACKUP, or PUVFF_COPYBACKUP.
- bstrCopyLocation
-
Type:
System.String
[in] String containing the location of the copy upgrade (PUVFF_COPYUPGRADE) or back up copy (PUVFF_COPYBACKUP).
- stUpgradeTime
-
Type:
Microsoft.VisualStudio.Shell.Interop.SYSTEMTIME
[in] A SYSTEMTIME value. The time the upgrade was done.
- pLogger
-
Type:
Microsoft.VisualStudio.Shell.Interop.IVsUpgradeLogger
[in] Pointer to an IVsUpgradeLogger interface to use for logging upgrade messages.
Return Value
Type: System.Int32If the method succeeds, it returns S_OK. If it fails, it returns an error code.
Show: