IVsTrackProjectRetargetingEvents::OnRetargetingBeforeChange Method (String^, IVsHierarchy^, String^, String^, Boolean, String^)

 

Fired before a retargeting change occurs. This is the first event sent to subscribers. The subscriber can choose to cancel retargeting on receiving this event.

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

int OnRetargetingBeforeChange(
	String^ projRef,
	IVsHierarchy^ pBeforeChangeHier,
	String^ currentTargetFramework,
	String^ newTargetFramework,
	[OutAttribute] bool% pCanceled,
	[OutAttribute] String^% ppReasonMsg
)

Parameters

projRef
Type: System::String^

[in] The unique project reference name.

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

[in] The project hierarchy before the change.

currentTargetFramework
Type: System::String^

[in] The current target framework of the project.

newTargetFramework
Type: System::String^

[in] The new target framework of the project.

pCanceled
Type: System::Boolean

[out] If true, retargeting was canceled by one of the subscribers.

ppReasonMsg
Type: System::String^

[out] A message string containing the reason why the cancelation occurred.

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: