次の方法で共有


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

  • 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

See Also

Reference

IVsSolution Interface

IVsSolution Members

Microsoft.VisualStudio.Shell.Interop Namespace