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)
Syntax
'宣告
Function RemoveVirtualProject ( _
pHierarchy As IVsHierarchy, _
grfRemoveVPFlags As UInteger _
) As Integer
'用途
Dim instance As IVsSolution
Dim pHierarchy As IVsHierarchy
Dim grfRemoveVPFlags As UInteger
Dim returnValue As Integer
returnValue = instance.RemoveVirtualProject(pHierarchy, _
grfRemoveVPFlags)
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
- 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.
Remarks
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.
.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.