IVsSolutionEvents4::OnQueryChangeProjectParent Method (IVsHierarchy^, IVsHierarchy^, Int32)

 

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

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

int OnQueryChangeProjectParent(
	IVsHierarchy^ pHierarchy,
	IVsHierarchy^ pNewParentHier,
	int% pfCancel
)

Parameters

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

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

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

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

pfCancel
Type: System::Int32

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

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: