IVsTrackProjectRetargeting::BatchRetargetProject Method (IVsHierarchy^, String^, Boolean)

 

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)

int BatchRetargetProject(
	IVsHierarchy^ pHier,
	String^ newTargetFramework,
	bool unloadProjectIfErrorOrCancel
)

Parameters

pHier
Type: Microsoft.VisualStudio.Shell.Interop::IVsHierarchy^

[in] The hierarchy of the project in which the batch retarget is to occur.

newTargetFramework
Type: System::String^

[in] The new target framework.

unloadProjectIfErrorOrCancel
Type: System::Boolean

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

Return Value

Type: System::Int32

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

Return to top
Show: