IVsFireSolutionEvents.FireOnAfterOpenProject(IVsHierarchy, Int32) Method

Definition

Fires a solution event, OnAfterOpenProject(IVsHierarchy, Int32), after opening the project.

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

Parameters

pHierarchy
IVsHierarchy

[in] Pointer to the IVsHierarchy interface of the project being opened.

fAdded
Int32

[in] Boolean. Set to true if the project is added to the solution after opening the solution. Set to false if the project is added to the solution while the solution is opening.

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 IVsFireSolutionEvents::FireOnAfterOpenProject(  
   [in] IVsHierarchy *pHierarchy,   
   [in] BOOL fAdded  
);  

Applies to

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