共用方式為


IVsSolutionEvents.OnBeforeUnloadProject(IVsHierarchy, IVsHierarchy) Method

Definition

Notifies listening clients that the project is about to be unloaded.

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

Parameters

pRealHierarchy
IVsHierarchy

[in] Pointer to the IVsHierarchy interface of the project that will be unloaded.

pStubHierarchy
IVsHierarchy

[in] Pointer to the IVsHierarchy interface of the placeholder hierarchy for the project being unloaded.

Returns

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

Remarks

COM Signature

From vsshell.idl:

HRESULT IVsSolutionEvents::OnBeforeUnloadProject(  
   [in] IVsHierarchy *pRealHierarchy,  
   [in] IVsHierarchy *pStubHierarchy  
);  

Applies to