IVsSolution2::GetGuidOfProject Method (IVsHierarchy^, Guid)
Visual Studio 2015
Returns the unique identifier for a project in the solution.
Assembly: Microsoft.VisualStudio.Shell.Interop (in Microsoft.VisualStudio.Shell.Interop.dll)
Parameters
- pHierarchy
-
Type:
Microsoft.VisualStudio.Shell.Interop::IVsHierarchy^
[in] Pointer to the IVsHierarchy interface of the project for which the identifier is requested.
- pguidProjectID
-
Type:
System::Guid
[out] Pointer to the unique identifier of the project.
Return Value
Type: System::Int32If the method succeeds, it returns S_OK. If it fails, it returns an error code.
From vsshell.idl:
HRESULT IVsSolution2::GetGuidOfProject( [in] IVsHierarchy *pHierarchy, [out] GUID *pguidProjectID );
Based on a project, this method returns the GUID for a project in a solution.
Show: