Partager via


IVsSolutionEventsProjectUpgrade.OnAfterUpgradeProject Method

Definition

Defines a method to call after a project upgrade.

public:
 int OnAfterUpgradeProject(Microsoft::VisualStudio::Shell::Interop::IVsHierarchy ^ pHierarchy, System::UInt32 fUpgradeFlag, System::String ^ bstrCopyLocation, Microsoft::VisualStudio::Shell::Interop::SYSTEMTIME stUpgradeTime, Microsoft::VisualStudio::Shell::Interop::IVsUpgradeLogger ^ pLogger);
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);
int OnAfterUpgradeProject(Microsoft::VisualStudio::Shell::Interop::IVsHierarchy const & pHierarchy, unsigned int fUpgradeFlag, std::wstring const & bstrCopyLocation, Microsoft::VisualStudio::Shell::Interop::SYSTEMTIME stUpgradeTime, Microsoft::VisualStudio::Shell::Interop::IVsUpgradeLogger const & pLogger);
public int OnAfterUpgradeProject (Microsoft.VisualStudio.Shell.Interop.IVsHierarchy pHierarchy, uint fUpgradeFlag, string bstrCopyLocation, Microsoft.VisualStudio.Shell.Interop.SYSTEMTIME stUpgradeTime, Microsoft.VisualStudio.Shell.Interop.IVsUpgradeLogger pLogger);
abstract member OnAfterUpgradeProject : Microsoft.VisualStudio.Shell.Interop.IVsHierarchy * uint32 * string * Microsoft.VisualStudio.Shell.Interop.SYSTEMTIME * Microsoft.VisualStudio.Shell.Interop.IVsUpgradeLogger -> int
Public Function OnAfterUpgradeProject (pHierarchy As IVsHierarchy, fUpgradeFlag As UInteger, bstrCopyLocation As String, stUpgradeTime As SYSTEMTIME, pLogger As IVsUpgradeLogger) As Integer

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