共用方式為


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

'宣告
Function OnAfterUpgradeProject ( _
    pHierarchy As IVsHierarchy, _
    fUpgradeFlag As UInteger, _
    bstrCopyLocation As String, _
    stUpgradeTime As SYSTEMTIME, _
    pLogger As IVsUpgradeLogger _
) As Integer
'用途
Dim instance As IVsSolutionEventsProjectUpgrade
Dim pHierarchy As IVsHierarchy
Dim fUpgradeFlag As UInteger
Dim bstrCopyLocation As String
Dim stUpgradeTime As SYSTEMTIME
Dim pLogger As IVsUpgradeLogger
Dim returnValue As Integer

returnValue = instance.OnAfterUpgradeProject(pHierarchy, _
    fUpgradeFlag, bstrCopyLocation, _
    stUpgradeTime, pLogger)
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
)
function OnAfterUpgradeProject(
    pHierarchy : IVsHierarchy, 
    fUpgradeFlag : uint, 
    bstrCopyLocation : String, 
    stUpgradeTime : SYSTEMTIME, 
    pLogger : IVsUpgradeLogger
) : int

Parameters

  • bstrCopyLocation
    Type: System.String

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

Return Value

Type: System.Int32

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

Permissions

See Also

Reference

IVsSolutionEventsProjectUpgrade Interface

IVsSolutionEventsProjectUpgrade Members

Microsoft.VisualStudio.Shell.Interop Namespace