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
'Déclaration
Function OnAfterUpgradeProject ( _
pHierarchy As IVsHierarchy, _
fUpgradeFlag As UInteger, _
bstrCopyLocation As String, _
stUpgradeTime As SYSTEMTIME, _
pLogger As IVsUpgradeLogger _
) As Integer
'Utilisation
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
)
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
- 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.Int32
If the method succeeds, it returns S_OK. If it fails, it returns an error code.
.NET Framework Security
- Full trust for the immediate caller. This member cannot be used by partially trusted code. For more information, see Using Libraries from Partially Trusted Code.
See Also
Reference
IVsSolutionEventsProjectUpgrade Interface