IVsSolutionEvents4.OnQueryChangeProjectParent Method

Definition

Queries listening clients as to whether a parent project has changed.

C++/WinRT
int OnQueryChangeProjectParent(Microsoft::VisualStudio::Shell::Interop::IVsHierarchy const & pHierarchy, Microsoft::VisualStudio::Shell::Interop::IVsHierarchy const & pNewParentHier, [Runtime::InteropServices::Out] int & pfCancel);

Parameters

pHierarchy
IVsHierarchy

[in] Pointer to the IVsHierarchy interface of the project parent.

pNewParentHier
IVsHierarchy

[in] Pointer to the IVsHierarchy interface of the changed project parent.

pfCancel
Int32

[in, out] true if the client vetoed the closing of the project. false if the client approved the closing of the project.

Returns

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

Applies to

Proizvod Verzije
Visual Studio SDK 2015, 2017, 2019, 2022