Kommentar
Åtkomst till den här sidan kräver auktorisering. Du kan prova att logga in eller ändra kataloger.
Åtkomst till den här sidan kräver auktorisering. Du kan prova att ändra kataloger.
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
dwUnloadStatus
Type: System.UInt32
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
- 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.