Share via


IVsTrackProjectRetargetingEvents.OnRetargetingFailure Method

Fired if any error occurs during project retargeting.

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

Syntax

'Declaration
Function OnRetargetingFailure ( _
    projRef As String, _
    pHier As IVsHierarchy, _
    fromTargetFramework As String, _
    toTargetFramework As String _
) As Integer
int OnRetargetingFailure(
    string projRef,
    IVsHierarchy pHier,
    string fromTargetFramework,
    string toTargetFramework
)
int OnRetargetingFailure(
    [InAttribute] String^ projRef, 
    [InAttribute] IVsHierarchy^ pHier, 
    [InAttribute] String^ fromTargetFramework, 
    [InAttribute] String^ toTargetFramework
)
abstract OnRetargetingFailure : 
        projRef:string * 
        pHier:IVsHierarchy * 
        fromTargetFramework:string * 
        toTargetFramework:string -> int
function OnRetargetingFailure(
    projRef : String, 
    pHier : IVsHierarchy, 
    fromTargetFramework : String, 
    toTargetFramework : String
) : int

Parameters

  • projRef
    Type: System.String

    [in] The unique project reference name.

  • fromTargetFramework
    Type: System.String

    [in] The current target framework of the project.

  • toTargetFramework
    Type: System.String

    [in] The new target framework of the project.

Return Value

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

.NET Framework Security

See Also

Reference

IVsTrackProjectRetargetingEvents Interface

Microsoft.VisualStudio.Shell.Interop Namespace