Share via


IVsTrackProjectRetargeting2.BatchRetargetProject Method

Performs a batch retargeting of the specified project.

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

Syntax

'Declaration
Function BatchRetargetProject ( _
    pHier As IVsHierarchy, _
    newTargetFramework As String, _
    unloadProjectIfErrorOrCancel As Boolean _
) As Integer
int BatchRetargetProject(
    IVsHierarchy pHier,
    string newTargetFramework,
    bool unloadProjectIfErrorOrCancel
)
int BatchRetargetProject(
    [InAttribute] IVsHierarchy^ pHier, 
    [InAttribute] String^ newTargetFramework, 
    [InAttribute] bool unloadProjectIfErrorOrCancel
)
abstract BatchRetargetProject : 
        pHier:IVsHierarchy * 
        newTargetFramework:string * 
        unloadProjectIfErrorOrCancel:bool -> int
function BatchRetargetProject(
    pHier : IVsHierarchy, 
    newTargetFramework : String, 
    unloadProjectIfErrorOrCancel : boolean
) : int

Parameters

  • newTargetFramework
    Type: String

    The new target framework.

  • unloadProjectIfErrorOrCancel
    Type: Boolean

    true to unload the project if there is an error, otherwise false.

Return Value

Type: Int32
The HRESULT.

.NET Framework Security

See Also

Reference

IVsTrackProjectRetargeting2 Interface

Microsoft.VisualStudio.Shell.Interop Namespace