Export (0) Print
Expand All

IVsSolution.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)

int RemoveVirtualProject (
	[InAttribute] IVsHierarchy^ pHierarchy, 
	[InAttribute] unsigned int grfRemoveVPFlags
)
int RemoveVirtualProject (
	/** @attribute InAttribute() */ IVsHierarchy pHierarchy, 
	/** @attribute InAttribute() */ UInt32 grfRemoveVPFlags
)
function RemoveVirtualProject (
	pHierarchy : IVsHierarchy, 
	grfRemoveVPFlags : uint
) : int

Parameters

pHierarchy

[in] Pointer to a hierarchy object.

grfRemoveVPFlags

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

Return Value

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

COM Signature

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.

Community Additions

ADD
Show:
© 2014 Microsoft