ModelingEditorFactory.OnBeforeCloseProject Method
Notifies listening clients that the project is about to be closed.
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 OnBeforeCloseProject ( _
pHierarchy As IVsHierarchy, _
fRemoved As Integer _
) As Integer
public int OnBeforeCloseProject(
IVsHierarchy pHierarchy,
int fRemoved
)
public:
virtual int OnBeforeCloseProject(
IVsHierarchy^ pHierarchy,
int fRemoved
) sealed
abstract OnBeforeCloseProject :
pHierarchy:IVsHierarchy *
fRemoved:int -> int
override OnBeforeCloseProject :
pHierarchy:IVsHierarchy *
fRemoved:int -> int
public final function OnBeforeCloseProject(
pHierarchy : IVsHierarchy,
fRemoved : int
) : int
Parameters
- pHierarchy
Type: Microsoft.VisualStudio.Shell.Interop.IVsHierarchy
The IVsHierarchy interface of the project that is being closed.
- fRemoved
Type: System.Int32
true to notify clients that the project was removed from the modeling editor before the modeling editor was closed; otherwise, false.
Return Value
Type: System.Int32
If the method succeeds, it returns S_OK. If it fails, it returns an error code.
Implements
IVsSolutionEvents.OnBeforeCloseProject(IVsHierarchy, Int32)
Remarks
This class cannot be inherited.
.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.