ModelingEditorFactory.OnBeforeUnloadProject Method
Notifies listening clients that the project is about to be unloaded.
Namespace: Microsoft.VisualStudio.Modeling.Shell
Assembly: Microsoft.VisualStudio.Modeling.Sdk.Shell.10.0 (in Microsoft.VisualStudio.Modeling.Sdk.Shell.10.0.dll)
Syntax
'Declaração
Public Function OnBeforeUnloadProject ( _
pRealHierarchy As IVsHierarchy, _
pStubHierarchy As IVsHierarchy _
) As Integer
public int OnBeforeUnloadProject(
IVsHierarchy pRealHierarchy,
IVsHierarchy pStubHierarchy
)
public:
virtual int OnBeforeUnloadProject(
IVsHierarchy^ pRealHierarchy,
IVsHierarchy^ pStubHierarchy
) sealed
abstract OnBeforeUnloadProject :
pRealHierarchy:IVsHierarchy *
pStubHierarchy:IVsHierarchy -> int
override OnBeforeUnloadProject :
pRealHierarchy:IVsHierarchy *
pStubHierarchy:IVsHierarchy -> int
public final function OnBeforeUnloadProject(
pRealHierarchy : IVsHierarchy,
pStubHierarchy : IVsHierarchy
) : int
Parameters
- pRealHierarchy
Type: Microsoft.VisualStudio.Shell.Interop.IVsHierarchy
The IVsHierarchy interface of the project that will be unloaded.
- pStubHierarchy
Type: Microsoft.VisualStudio.Shell.Interop.IVsHierarchy
The IVsHierarchy interface of the placeholder hierarchy for the project that is being unloaded.
Return Value
Type: System.Int32
If the method succeeds, it returns S_OK. If it fails, it returns an error code.
Implements
IVsSolutionEvents.OnBeforeUnloadProject(IVsHierarchy, IVsHierarchy)
.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.