IVsSolutionEventsProjectUpgrade.OnAfterUpgradeProject Method

Definition

Defines a method to call after a project upgrade.

C++/CX
public:
 int OnAfterUpgradeProject(Microsoft::VisualStudio::Shell::Interop::IVsHierarchy ^ pHierarchy, unsigned int fUpgradeFlag, Platform::String ^ bstrCopyLocation, Microsoft::VisualStudio::Shell::Interop::SYSTEMTIME stUpgradeTime, Microsoft::VisualStudio::Shell::Interop::IVsUpgradeLogger ^ pLogger);

Parameters

pHierarchy
IVsHierarchy

[in] Pointer to the IVsHierarchy interface of the project.

fUpgradeFlag
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
String

[in] String containing the location of the copy upgrade (PUVFF_COPYUPGRADE) or back up copy (PUVFF_COPYBACKUP).

stUpgradeTime
SYSTEMTIME

[in] A SYSTEMTIME value. The time the upgrade was done.

pLogger
IVsUpgradeLogger

[in] Pointer to an IVsUpgradeLogger interface to use for logging upgrade messages.

Returns

If the method succeeds, it returns S_OK. If it fails, it returns an error code.

Applies to

Proizvod Verzije
Visual Studio SDK 2015, 2017, 2019, 2022