IVsSolutionEvents2.OnAfterOpenProject(IVsHierarchy, Int32) Méthode

Définition

Signale aux clients qui écoutent que le projet a été ouvert.

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

Paramètres

pHierarchy
IVsHierarchy

[in] Pointeur vers l'interface IVsHierarchy du projet en cours de chargement.

fAdded
Int32

[in] true si le projet est ajouté à la solution après l'ouverture de la solution. false si le projet est ajouté à la solution pendant l'ouverture de cette dernière.

Retours

Int32

Si la méthode réussit, retourne S_OK. En cas d'échec, retourne un code d'erreur.

Implémente

Remarques

Signature COM

À partir de vsshell. idl :

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

S’applique à