IVsSolution4.UnloadProject(Guid, UInt32) Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Unloads a project and sets the reason for unloading it.
public:
int UnloadProject(Guid % guidProjectID, System::UInt32 dwUnloadStatus);
public int UnloadProject (ref Guid guidProjectID, uint dwUnloadStatus);
abstract member UnloadProject : Guid * uint32 -> int
Public Function UnloadProject (ByRef guidProjectID As Guid, dwUnloadStatus As UInteger) As Integer
Parameters
- guidProjectID
- Guid
The GUID of the project
- dwUnloadStatus
- UInt32
Returns
If the method succeeds, it returns S_OK. If it fails, it returns an error code.
Remarks
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.