IVsParentProject.OpenChildren Method
Implemented to open 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 OpenChildren As Integer
int OpenChildren()
int OpenChildren()
abstract OpenChildren : unit -> int
function OpenChildren() : int
Return Value
Type: Int32
If the method succeeds, it returns S_OK. If it fails, it returns an error code.
Remarks
OpenChildren is called after the parent project is opened and before the OnAfterOpenProject the environment for the project sends the notification.
When OpenChildren is called, the parent project causes the OnBeforeOpeningChildren notification to be fired sending notification to all listening processes that nested projects are about to be opened. The parent project then opens all of its child projects. Once all of the nested projects are opened, the parent project calls OnAfterOpeningChildren to notify all listening processes that all of the children projects have been opened.
Finally, the environment for the parent project sends the OnAfterOpenProject notification.
.NET Framework Security
- Full trust for the immediate caller. This member cannot be used by partially trusted code. For more information, see Using Libraries from Partially Trusted Code.