Note
Access to this page requires authorization. You can try signing in or changing directories.
Access to this page requires authorization. You can try changing directories.
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
- pHier 
 Type: Microsoft.VisualStudio.Shell.Interop.IVsHierarchy- The project hierarchy. 
- 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
- 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.