次の方法で共有


IVsPrioritizedSolutionEvents.PrioritizedOnBeforeCloseProject Method

Definition

Defines a method called after OnBeforeCloseProject(IVsHierarchy, Int32) and before closing a project.

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

Parameters

pHierarchy
IVsHierarchy

[in] Pointer to the IVsHierarchy interface of the project.

fRemoved
Int32

[in] Boolean. Set to true if the project was removed from the solution.

Returns

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

Applies to