Freigeben über


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
'Usage
Dim instance As IVsSolution
Dim pHierarchy As IVsHierarchy
Dim pgrfAddVPFlags As UInteger
Dim returnValue As Integer

returnValue = instance.GetVirtualProjectFlags(pHierarchy, _
    pgrfAddVPFlags)
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: System.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: 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::GetVirtualProjectFlags(
   [in] IVsHierarchy *pHierarchy,
   [out] VSADDVPFLAGS *pgrfAddVPFlags
);

.NET Framework Security

See Also

Reference

IVsSolution Interface

IVsSolution Members

Microsoft.VisualStudio.Shell.Interop Namespace