IVsSolution::GetProjectOfGuid Method (Guid, IVsHierarchy^)
Visual Studio 2015
Returns the project in the solution, given a unique identifier.
Assembly: Microsoft.VisualStudio.Shell.Interop (in Microsoft.VisualStudio.Shell.Interop.dll)
int GetProjectOfGuid(
[InAttribute] Guid% rguidProjectID,
[OutAttribute] IVsHierarchy^% ppHierarchy
)
Parameters
- rguidProjectID
-
Type:
System::Guid
[in] Unique identifier (GUID) for the project.
- ppHierarchy
-
Type:
Microsoft.VisualStudio.Shell.Interop::IVsHierarchy^
[out] Pointer to the IVsHierarchy interface of the project referred to by the identifier.
Return Value
Type: System::Int32If the method succeeds, it returns S_OK. If it fails, it returns an error code.
From vsshell.idl:
HRESULT IVsSolution::GetProjectOfGuid(
[in] REFGUID rguidProjectID,
[out] IVsHierarchy **ppHierarchy
);
The project is identified by the GUID. This method returns the IVsHierarchy interface for the project based on the specified GUID.
Show: