IVsSolution.GetProjectOfGuid(Guid, IVsHierarchy) Method
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Returns the project in the solution, given a unique identifier.
C++
public:
int GetProjectOfGuid(Guid % rguidProjectID, [Runtime::InteropServices::Out] Microsoft::VisualStudio::Shell::Interop::IVsHierarchy ^ % ppHierarchy);
public int GetProjectOfGuid(ref Guid rguidProjectID, out Microsoft.VisualStudio.Shell.Interop.IVsHierarchy ppHierarchy);
abstract member GetProjectOfGuid : Guid * IVsHierarchy -> int
Public Function GetProjectOfGuid (ByRef rguidProjectID As Guid, ByRef ppHierarchy As IVsHierarchy) As Integer
- rguidProjectID
- Guid
[in] Unique identifier (GUID) for the project.
- ppHierarchy
- IVsHierarchy
[out] Pointer to the IVsHierarchy interface of the project referred to by the identifier.
If the method succeeds, it returns S_OK. If it fails, it returns an error code.
From vsshell.idl:
cpp#
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.
製品 | バージョン |
---|---|
Visual Studio SDK | 2015, 2017, 2019, 2022 |