Hinweis
Für den Zugriff auf diese Seite ist eine Autorisierung erforderlich. Sie können versuchen, sich anzumelden oder das Verzeichnis zu wechseln.
Für den Zugriff auf diese Seite ist eine Autorisierung erforderlich. Sie können versuchen, das Verzeichnis zu wechseln.
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: Guid%The GUID of the project
dwUnloadStatus
Type: UInt32
Return Value
Type: 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
- Full trust for the immediate caller. This member cannot be used by partially trusted code. For more information, see Using Libraries from Partially Trusted Code.