IVsSolution2.RemoveVirtualProject(IVsHierarchy, UInt32) Method

Definition

Removes a virtual project from the solution.

public:
 int RemoveVirtualProject(Microsoft::VisualStudio::Shell::Interop::IVsHierarchy ^ pHierarchy, System::UInt32 grfRemoveVPFlags);
public:
 int RemoveVirtualProject(Microsoft::VisualStudio::Shell::Interop::IVsHierarchy ^ pHierarchy, unsigned int grfRemoveVPFlags);
int RemoveVirtualProject(Microsoft::VisualStudio::Shell::Interop::IVsHierarchy const & pHierarchy, unsigned int grfRemoveVPFlags);
public int RemoveVirtualProject (Microsoft.VisualStudio.Shell.Interop.IVsHierarchy pHierarchy, uint grfRemoveVPFlags);
abstract member RemoveVirtualProject : Microsoft.VisualStudio.Shell.Interop.IVsHierarchy * uint32 -> int
Public Function RemoveVirtualProject (pHierarchy As IVsHierarchy, grfRemoveVPFlags As UInteger) As Integer

Parameters

pHierarchy
IVsHierarchy

[in] Pointer to a hierarchy object.

grfRemoveVPFlags
UInt32

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

Returns

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

Implements

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.

Applies to