次の方法で共有


IVsSolution.GetVirtualProjectFlags(IVsHierarchy, UInt32) Method

Definition

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

public:
 int GetVirtualProjectFlags(Microsoft::VisualStudio::Shell::Interop::IVsHierarchy ^ pHierarchy, [Runtime::InteropServices::Out] System::UInt32 % pgrfAddVPFlags);
int GetVirtualProjectFlags(Microsoft::VisualStudio::Shell::Interop::IVsHierarchy const & pHierarchy, [Runtime::InteropServices::Out] unsigned int & pgrfAddVPFlags);
public int GetVirtualProjectFlags (Microsoft.VisualStudio.Shell.Interop.IVsHierarchy pHierarchy, out uint pgrfAddVPFlags);
abstract member GetVirtualProjectFlags : Microsoft.VisualStudio.Shell.Interop.IVsHierarchy * uint32 -> int
Public Function GetVirtualProjectFlags (pHierarchy As IVsHierarchy, ByRef pgrfAddVPFlags As UInteger) As Integer

Parameters

pHierarchy
IVsHierarchy

[in] IVsHierarchy interface for the specified virtual project.

pgrfAddVPFlags
UInt32

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

Returns

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  
);  

Applies to