IVsSolutionEvents3.OnBeforeUnloadProject Method (IVsHierarchy, IVsHierarchy)
Notifies listening clients that the project is about to be unloaded.
Namespace: Microsoft.VisualStudio.Shell.Interop
Assembly: Microsoft.VisualStudio.Shell.Interop (in Microsoft.VisualStudio.Shell.Interop.dll)
Syntax
'Declaración
Function OnBeforeUnloadProject ( _
pRealHierarchy As IVsHierarchy, _
pStubHierarchy As IVsHierarchy _
) As Integer
'Uso
Dim instance As IVsSolutionEvents3
Dim pRealHierarchy As IVsHierarchy
Dim pStubHierarchy As IVsHierarchy
Dim returnValue As Integer
returnValue = instance.OnBeforeUnloadProject(pRealHierarchy, _
pStubHierarchy)
int OnBeforeUnloadProject(
IVsHierarchy pRealHierarchy,
IVsHierarchy pStubHierarchy
)
int OnBeforeUnloadProject(
[InAttribute] IVsHierarchy^ pRealHierarchy,
[InAttribute] IVsHierarchy^ pStubHierarchy
)
abstract OnBeforeUnloadProject :
pRealHierarchy:IVsHierarchy *
pStubHierarchy:IVsHierarchy -> int
function OnBeforeUnloadProject(
pRealHierarchy : IVsHierarchy,
pStubHierarchy : IVsHierarchy
) : int
Parameters
- pRealHierarchy
Type: Microsoft.VisualStudio.Shell.Interop.IVsHierarchy
[in] Pointer to the IVsHierarchy interface of the project that will be unloaded.
- pStubHierarchy
Type: Microsoft.VisualStudio.Shell.Interop.IVsHierarchy
[in] Pointer to the IVsHierarchy interface of the placeholder hierarchy for the project being unloaded.
Return Value
Type: System.Int32
If the method succeeds, it returns S_OK. If it fails, it returns an error code.
Implements
IVsSolutionEvents2.OnBeforeUnloadProject(IVsHierarchy, IVsHierarchy)
Remarks
COM Signature
From vsshell.idl:
HRESULT IVsSolutionEvents3::OnBeforeUnloadProject(
[in] IVsHierarchy *pRealHierarchy,
[in] IVsHierarchy *pStubHierarchy
);
.NET Framework Security
- Full trust for the immediate caller. This member cannot be used by partially trusted code. For more information, see Using Libraries from Partially Trusted Code.