IVsSolution4.UnloadProject Method (Guid, UInt32)

 

Unloads a project and sets the reason for unloading it.

Namespace:   Microsoft.VisualStudio.Shell.Interop
Assembly:  Microsoft.VisualStudio.Shell.Interop.10.0 (in Microsoft.VisualStudio.Shell.Interop.10.0.dll)

int UnloadProject(
	[InAttribute] ref Guid guidProjectID,
	uint dwUnloadStatus
)

Parameters

guidProjectID
Type: System.Guid

The GUID of the project

dwUnloadStatus
Type: System.UInt32

The _VSProjectUnloadStatus.

Return Value

Type: System.Int32

If 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.

Return to top
Show: