IVsSolutionEvents3.OnBeforeClosingChildren(IVsHierarchy) Method

Definition

Fired before closing all nested projects owned by a parent hierarchy.

C++/CX
public:
 int OnBeforeClosingChildren(Microsoft::VisualStudio::Shell::Interop::IVsHierarchy ^ pHierarchy);

Parameters

pHierarchy
IVsHierarchy

[in] Pointer to parent project.

Returns

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

Remarks

COM Signature

From vsshell.idl:

cpp#
HRESULT IVsSolutionEvents3::OnBeforeClosingChildren(  
   [in] IVsHierarchy *pHierarchy  
);  

Implemented with CloseChildren to control the closing of nested projects.

Applies to

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