IVsSolution4.UnloadProject(Guid, UInt32) Method

Definition

Unloads a project and sets the reason for unloading it.

C++
public:
 int UnloadProject(Guid % guidProjectID, System::UInt32 dwUnloadStatus);

Parameters

guidProjectID
Guid

The GUID of the project

dwUnloadStatus
UInt32

The _VSProjectUnloadStatus.

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.

Applies to

Proizvod Verzije
Visual Studio SDK 2015, 2017, 2019, 2022