Compartilhar via


IVsSolutionEventsProjectUpgrade.OnAfterUpgradeProject Method

Defines a method to call after a project upgrade.

Namespace:  Microsoft.VisualStudio.Shell.Interop
Assembly:  Microsoft.VisualStudio.Shell.Interop.8.0 (in Microsoft.VisualStudio.Shell.Interop.8.0.dll)

Syntax

'Declaration
Function OnAfterUpgradeProject ( _
    pHierarchy As IVsHierarchy, _
    fUpgradeFlag As UInteger, _
    bstrCopyLocation As String, _
    stUpgradeTime As SYSTEMTIME, _
    pLogger As IVsUpgradeLogger _
) As Integer
int OnAfterUpgradeProject(
    IVsHierarchy pHierarchy,
    uint fUpgradeFlag,
    string bstrCopyLocation,
    SYSTEMTIME stUpgradeTime,
    IVsUpgradeLogger pLogger
)
int OnAfterUpgradeProject(
    [InAttribute] IVsHierarchy^ pHierarchy, 
    [InAttribute] unsigned int fUpgradeFlag, 
    [InAttribute] String^ bstrCopyLocation, 
    [InAttribute] SYSTEMTIME stUpgradeTime, 
    [InAttribute] IVsUpgradeLogger^ pLogger
)
abstract OnAfterUpgradeProject : 
        pHierarchy:IVsHierarchy * 
        fUpgradeFlag:uint32 * 
        bstrCopyLocation:string * 
        stUpgradeTime:SYSTEMTIME * 
        pLogger:IVsUpgradeLogger -> int
function OnAfterUpgradeProject(
    pHierarchy : IVsHierarchy, 
    fUpgradeFlag : uint, 
    bstrCopyLocation : String, 
    stUpgradeTime : SYSTEMTIME, 
    pLogger : IVsUpgradeLogger
) : int

Parameters

  • fUpgradeFlag
    Type: 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: String

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

Return Value

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

.NET Framework Security

See Also

Reference

IVsSolutionEventsProjectUpgrade Interface

Microsoft.VisualStudio.Shell.Interop Namespace