IVsSolution2.GetProjectOfUniqueName(String, IVsHierarchy) Method
Definition
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 name.
public:
int GetProjectOfUniqueName(System::String ^ pszUniqueName, [Runtime::InteropServices::Out] Microsoft::VisualStudio::Shell::Interop::IVsHierarchy ^ % ppHierarchy);
public:
int GetProjectOfUniqueName(Platform::String ^ pszUniqueName, [Runtime::InteropServices::Out] Microsoft::VisualStudio::Shell::Interop::IVsHierarchy ^ & ppHierarchy);
int GetProjectOfUniqueName(std::wstring const & pszUniqueName, [Runtime::InteropServices::Out] Microsoft::VisualStudio::Shell::Interop::IVsHierarchy const & & ppHierarchy);
public int GetProjectOfUniqueName (string pszUniqueName, out Microsoft.VisualStudio.Shell.Interop.IVsHierarchy ppHierarchy);
abstract member GetProjectOfUniqueName : string * IVsHierarchy -> int
Public Function GetProjectOfUniqueName (pszUniqueName As String, ByRef ppHierarchy As IVsHierarchy) As Integer
Parameters
- pszUniqueName
- String
[in] Unique name for the project.
- ppHierarchy
- IVsHierarchy
[out] Pointer to the IVsHierarchy interface of the project referred to by pszUniqueName
.
Returns
If the method succeeds, it returns S_OK. If it fails, it returns an error code.
Implements
Remarks
COM Signature
From vsshell.idl:
HRESULT IVsSolution2::GetProjectOfUniqueName(
[in] LPCOLESTR pszUniqueName,
[out] IVsHierarchy **ppHierarchy
);