Share via


IVsSolution4.UnloadProject(Guid, UInt32) Method

Definition

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

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