IVsSolution2.GetUniqueNameOfProject(IVsHierarchy, String) 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 unique name, given a project in the solution.
public:
int GetUniqueNameOfProject(Microsoft::VisualStudio::Shell::Interop::IVsHierarchy ^ pHierarchy, [Runtime::InteropServices::Out] System::String ^ % pbstrUniqueName);
int GetUniqueNameOfProject(Microsoft::VisualStudio::Shell::Interop::IVsHierarchy const & pHierarchy, [Runtime::InteropServices::Out] std::wstring const & & pbstrUniqueName);
public int GetUniqueNameOfProject (Microsoft.VisualStudio.Shell.Interop.IVsHierarchy pHierarchy, out string pbstrUniqueName);
abstract member GetUniqueNameOfProject : Microsoft.VisualStudio.Shell.Interop.IVsHierarchy * string -> int
Public Function GetUniqueNameOfProject (pHierarchy As IVsHierarchy, ByRef pbstrUniqueName As String) As Integer
Parameters
- pHierarchy
- IVsHierarchy
[in] Pointer to the IVsHierarchy interface of the project.
- pbstrUniqueName
- String
[out] Pointer to the unique name of the project.
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::GetUniqueNameOfProject(
[in] IVsHierarchy *pHierarchy,
[out] BSTR *pbstrUniqueName
);