Поделиться через


IVsSolution4.UnloadProject Method

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)

Syntax

'Declaration
Function UnloadProject ( _
    ByRef guidProjectID As Guid, _
    dwUnloadStatus As UInteger _
) As Integer
int UnloadProject(
    ref Guid guidProjectID,
    uint dwUnloadStatus
)
int UnloadProject(
    [InAttribute] Guid% guidProjectID, 
    [InAttribute] unsigned int dwUnloadStatus
)
abstract UnloadProject : 
        guidProjectID:Guid byref * 
        dwUnloadStatus:uint32 -> int 
function UnloadProject(
    guidProjectID : Guid, 
    dwUnloadStatus : uint
) : int

Parameters

  • guidProjectID
    Type: System.Guid%
    The GUID of the project

Return Value

Type: System.Int32
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.

.NET Framework Security

See Also

Reference

IVsSolution4 Interface

Microsoft.VisualStudio.Shell.Interop Namespace