IVsSolutionEvents3.OnBeforeCloseProject(IVsHierarchy, Int32) Methode

Definition

Benachrichtigt Lausch-Clients, dass das Projekt gerade geschlossen wird.

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

Parameter

pHierarchy
IVsHierarchy

[in] Zeiger auf die IVsHierarchy-Schnittstelle des Projekts, das geschlossen wird.

fRemoved
Int32

[in] true, wenn das Projekt aus der Projektmappe entfernt wurde, bevor die Projektmappe geschlossen wurde. false, wenn das Projekt mit dem Schließen der Projektmappe aus der Projektmappe entfernt wurde.

Gibt zurück

Int32

Wenn die Methode erfolgreich ist, wird S_OK zurückgegeben. Bei einem Fehler wird ein Fehlercode zurückgegeben.

Implementiert

Hinweise

COM-Signatur

Aus vsshell. idl:

HRESULT IVsSolutionEvents3::OnBeforeCloseProject(  
   [in] IVsHierarchy *pHierarchy,  
   [in] BOOL fRemoved  
);  

Gilt für