IVsSolutionEvents4.OnQueryChangeProjectParent Method

Definition

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

public:
 int OnQueryChangeProjectParent(Microsoft::VisualStudio::Shell::Interop::IVsHierarchy ^ pHierarchy, Microsoft::VisualStudio::Shell::Interop::IVsHierarchy ^ pNewParentHier, [Runtime::InteropServices::Out] int % pfCancel);
int OnQueryChangeProjectParent(Microsoft::VisualStudio::Shell::Interop::IVsHierarchy const & pHierarchy, Microsoft::VisualStudio::Shell::Interop::IVsHierarchy const & pNewParentHier, [Runtime::InteropServices::Out] int & pfCancel);
public int OnQueryChangeProjectParent (Microsoft.VisualStudio.Shell.Interop.IVsHierarchy pHierarchy, Microsoft.VisualStudio.Shell.Interop.IVsHierarchy pNewParentHier, out int pfCancel);
abstract member OnQueryChangeProjectParent : Microsoft.VisualStudio.Shell.Interop.IVsHierarchy * Microsoft.VisualStudio.Shell.Interop.IVsHierarchy * int -> int
Public Function OnQueryChangeProjectParent (pHierarchy As IVsHierarchy, pNewParentHier As IVsHierarchy, ByRef pfCancel As Integer) As Integer

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