Compartir a través de


IVsSolution2.RemoveVirtualProject Method

Removes a virtual project from the solution.

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

Syntax

'Declaration
Function RemoveVirtualProject ( _
    pHierarchy As IVsHierarchy, _
    grfRemoveVPFlags As UInteger _
) As Integer
int RemoveVirtualProject(
    IVsHierarchy pHierarchy,
    uint grfRemoveVPFlags
)
int RemoveVirtualProject(
    [InAttribute] IVsHierarchy^ pHierarchy, 
    [InAttribute] unsigned int grfRemoveVPFlags
)
abstract RemoveVirtualProject : 
        pHierarchy:IVsHierarchy * 
        grfRemoveVPFlags:uint32 -> int
function RemoveVirtualProject(
    pHierarchy : IVsHierarchy, 
    grfRemoveVPFlags : uint
) : int

Parameters

  • grfRemoveVPFlags
    Type: UInt32

    [in] Options for removing the virtual project from the solution. For a list of grfRemoveVPFlags values, see __VSREMOVEVPFLAGS.

Return Value

Type: Int32
If the method succeeds, it returns S_OK. If it fails, it returns an error code.

Remarks

COM Signature

From vsshell.idl:

HRESULT IVsSolution2::RemoveVirtualProject(
   [in] IVsHierarchy *pHierarchy, 
   [in] VSREMOVEVPFLAGS grfRemoveVPFlags
);

This method will tell the solution to release a virtual project pointer previously added using AddVirtualProjectEx with or without calling a Close method on the project.

.NET Framework Security

See Also

Reference

IVsSolution2 Interface

Microsoft.VisualStudio.Shell.Interop Namespace