IVsSolution::RemoveVirtualProject Method (IVsHierarchy^, UInt32)

 

Removes a virtual project from the solution.

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

int RemoveVirtualProject(
	IVsHierarchy^ pHierarchy,
	unsigned int grfRemoveVPFlags
)

Parameters

pHierarchy
Type: Microsoft.VisualStudio.Shell.Interop::IVsHierarchy^

[in] Pointer to a hierarchy object.

grfRemoveVPFlags
Type: System::UInt32

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

Return Value

Type: System::Int32

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

From vsshell.idl:

HRESULT IVsSolution::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.

Return to top
Show: