IVsSolution4.UnloadProject Method (Guid, UInt32)
Visual Studio 2015
Unloads a project and sets the reason for unloading it.
Assembly: Microsoft.VisualStudio.Shell.Interop.10.0 (in Microsoft.VisualStudio.Shell.Interop.10.0.dll)
Return Value
Type: System.Int32If the method succeeds, it returns S_OK. If it fails, it returns an error code.
This method is similar to CloseSolutionElement but gives more control over the reason for unloading the project. CloseSolutionElement always sets the unload status to UNLOADSTATUS_UnloadedByUser.
Show: