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
- pHierarchy
Type: Microsoft.VisualStudio.Shell.Interop.IVsHierarchy
[in] IVsHierarchy interface for the specified virtual project.
- 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
- 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.