共用方式為


IVsProjectUpgradeViaFactory2.OnUpgradeProjectCancelled Method

Cleans up cached items associated with the given project file.

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

Syntax

'宣告
Function OnUpgradeProjectCancelled ( _
    bstrFileName As String _
) As Integer
'用途
Dim instance As IVsProjectUpgradeViaFactory2
Dim bstrFileName As String
Dim returnValue As Integer

returnValue = instance.OnUpgradeProjectCancelled(bstrFileName)
int OnUpgradeProjectCancelled(
    string bstrFileName
)
int OnUpgradeProjectCancelled(
    [InAttribute] String^ bstrFileName
)
abstract OnUpgradeProjectCancelled : 
        bstrFileName:string -> int 
function OnUpgradeProjectCancelled(
    bstrFileName : String
) : int

Parameters

  • bstrFileName
    Type: System.String
    [in] String containing the project file name.

Return Value

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

Remarks

This method may be called even if the project does not require upgrading because a different project in the solution may require upgrading. Thus the possibility of a cancelled upgrade exists even though the specific project does not require upgrading.

.NET Framework Security

See Also

Reference

IVsProjectUpgradeViaFactory2 Interface

IVsProjectUpgradeViaFactory2 Members

Microsoft.VisualStudio.Shell.Interop Namespace