共用方式為


IVsParentProject.OpenChildren Method

Definition

Implemented to open nested projects under a parent project.

public:
 int OpenChildren();
public:
 int OpenChildren();
int OpenChildren();
public int OpenChildren ();
abstract member OpenChildren : unit -> int
Public Function OpenChildren () As Integer

Returns

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.

Applies to