Método IVsSolution4.UnloadProject (Guid, UInt32)

 

Descarrega um projeto e define a razão para fechá-lo.

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

Sintaxe

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

Parâmetros

  • guidProjectID
    O GUID do projeto

Valor de retorno

Type: System.Int32

Se o método for bem-sucedido, ele retorna S_OK.Se ele falhar, ele retorna um código de erro.

Comentários

Este método é semelhante a CloseSolutionElement , mas proporciona maior controle sobre o motivo para descarregar o projeto.CloseSolutionElementsempre define o status de descarregamento como UNLOADSTATUS_UnloadedByUser.

Consulte também

Interface IVsSolution4
Namespace Microsoft.VisualStudio.Shell.Interop

Retornar ao topo