IVsSetTargetFrameworkWorkerCallback::UpdateTargetFramework Method (IVsHierarchy^, String^, String^)

 

Updates the project to the new target framework.

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

int UpdateTargetFramework(
	IVsHierarchy^ pHier,
	String^ currentTargetFramework,
	String^ newTargetFramework
)

Parameters

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

[in] The hierarchy of the project to be updated.

currentTargetFramework
Type: System::String^

[in] The current target framework.

newTargetFramework
Type: System::String^

[in] The new target framework.

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: