Share via


IVsSolution.GetVirtualProjectFlags Method

Determines how the virtual project was added to the Solution Explorer.

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

Syntax

'Declaration
Function GetVirtualProjectFlags ( _
    pHierarchy As IVsHierarchy, _
    <OutAttribute> ByRef pgrfAddVPFlags As UInteger _
) As Integer
int GetVirtualProjectFlags(
    IVsHierarchy pHierarchy,
    out uint pgrfAddVPFlags
)
int GetVirtualProjectFlags(
    [InAttribute] IVsHierarchy^ pHierarchy, 
    [OutAttribute] unsigned int% pgrfAddVPFlags
)
abstract GetVirtualProjectFlags : 
        pHierarchy:IVsHierarchy * 
        pgrfAddVPFlags:uint32 byref -> int
function GetVirtualProjectFlags(
    pHierarchy : IVsHierarchy, 
    pgrfAddVPFlags : uint
) : int

Parameters

  • pgrfAddVPFlags
    Type: UInt32%

    [out] Pointer to options for how virtual project was added to the Solution Explorer. For a list of grfAddVPFlags, see __VSADDVPFLAGS.

Return Value

Type: 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::GetVirtualProjectFlags(
   [in] IVsHierarchy *pHierarchy,
   [out] VSADDVPFLAGS *pgrfAddVPFlags
);

.NET Framework Security

See Also

Reference

IVsSolution Interface

Microsoft.VisualStudio.Shell.Interop Namespace