共用方式為


IVsSetTargetFrameworkWorkerCallback.UpdateTargetFramework Method

Definition

Updates the project to the new target framework.

public:
 int UpdateTargetFramework(Microsoft::VisualStudio::Shell::Interop::IVsHierarchy ^ pHier, System::String ^ currentTargetFramework, System::String ^ newTargetFramework);
public:
 int UpdateTargetFramework(Microsoft::VisualStudio::Shell::Interop::IVsHierarchy ^ pHier, Platform::String ^ currentTargetFramework, Platform::String ^ newTargetFramework);
int UpdateTargetFramework(Microsoft::VisualStudio::Shell::Interop::IVsHierarchy const & pHier, std::wstring const & currentTargetFramework, std::wstring const & newTargetFramework);
public int UpdateTargetFramework (Microsoft.VisualStudio.Shell.Interop.IVsHierarchy pHier, string currentTargetFramework, string newTargetFramework);
abstract member UpdateTargetFramework : Microsoft.VisualStudio.Shell.Interop.IVsHierarchy * string * string -> int
Public Function UpdateTargetFramework (pHier As IVsHierarchy, currentTargetFramework As String, newTargetFramework As String) As Integer

Parameters

pHier
IVsHierarchy

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

currentTargetFramework
String

[in] The current target framework.

newTargetFramework
String

[in] The new target framework.

Returns

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

Applies to