다음을 통해 공유


IVsSolutionEvents2.OnAfterOpenProject(IVsHierarchy, Int32) Method

Definition

Notifies listening clients that the project has been opened.

public:
 int OnAfterOpenProject(Microsoft::VisualStudio::Shell::Interop::IVsHierarchy ^ pHierarchy, int fAdded);
public:
 int OnAfterOpenProject(Microsoft::VisualStudio::Shell::Interop::IVsHierarchy ^ pHierarchy, int fAdded);
int OnAfterOpenProject(Microsoft::VisualStudio::Shell::Interop::IVsHierarchy const & pHierarchy, int fAdded);
public int OnAfterOpenProject (Microsoft.VisualStudio.Shell.Interop.IVsHierarchy pHierarchy, int fAdded);
abstract member OnAfterOpenProject : Microsoft.VisualStudio.Shell.Interop.IVsHierarchy * int -> int
Public Function OnAfterOpenProject (pHierarchy As IVsHierarchy, fAdded As Integer) As Integer

Parameters

pHierarchy
IVsHierarchy

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

fAdded
Int32

[in] true if the project is added to the solution after the solution is opened. false if the project is added to the solution while the solution is being opened.

Returns

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

Implements

Remarks

COM Signature

From vsshell.idl:

HRESULT IVsSolutionEvents2::OnAfterOpenProject(  
   [in] IVsHierarchy *pHierarchy,  
   [in] BOOL fAdded  
);  

Applies to