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
pHier
Type: Microsoft.VisualStudio.Shell.Interop.IVsHierarchyThe project hierarchy.
newTargetFramework
Type: StringThe new target framework.
unloadProjectIfErrorOrCancel
Type: Booleantrue 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.