Compartir a través de


IVsTrackProjectRetargeting.BatchRetargetProject Method

Schedules the project for batch retargeting.

Namespace:  Microsoft.VisualStudio.Shell.Interop
Assembly:  Microsoft.VisualStudio.Shell.Interop.10.0 (in Microsoft.VisualStudio.Shell.Interop.10.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

    [in] The new target framework.

  • unloadProjectIfErrorOrCancel
    Type: Boolean

    [in] If true, the project is unloaded if an error occurs or the user cancels the operation.

Return Value

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

.NET Framework Security

See Also

Reference

IVsTrackProjectRetargeting Interface

Microsoft.VisualStudio.Shell.Interop Namespace