IVsParentProject.CloseChildren Method

Implemented to close nested projects under a parent project.

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

Syntax

'Declaration
Function CloseChildren As Integer
'Usage
Dim instance As IVsParentProject 
Dim returnValue As Integer 

returnValue = instance.CloseChildren()
int CloseChildren()
int CloseChildren()
function CloseChildren() : int

Return Value

Type: System.Int32

Remarks

CloseChildren is called before the parent project is closed and after the OnBeforeCloseProject notification is sent by the environment for the project.

When CloseChildren is called, the parent project causes the OnBeforeClosingChildren notification to be fired sending notification to all listening processes that nested projects are about to be closed. The parent project then closes all of its child projects. Once all of the nested projects are closed, the parent project calls OnAfterClosingChildren to notify all listening processes that all of the children projects have been closed.

.NET Framework Security

See Also

Reference

IVsParentProject Interface

IVsParentProject Members

Microsoft.VisualStudio.Shell.Interop Namespace