IVsSolution3::GetUniqueUINameOfProject Method (IVsHierarchy^, String^)
Visual Studio 2015
Generates a unique name for a project.
Assembly: Microsoft.VisualStudio.Shell.Interop.8.0 (in Microsoft.VisualStudio.Shell.Interop.8.0.dll)
int GetUniqueUINameOfProject(
IVsHierarchy^ pHierarchy,
[OutAttribute] String^% pbstrUniqueName
)
Parameters
- pHierarchy
-
Type:
Microsoft.VisualStudio.Shell.Interop::IVsHierarchy^
[in] A IVsHierarchy for the project hierarchy.
- pbstrUniqueName
-
Type:
System::String^
[out] The unique UI name for the project.
Return Value
Type: System::Int32If the method succeeds, it returns S_OK. If it fails, it returns an error code.
This method will generate a unique UI name for the project whose hierarchy is passed in. This is necessary in the case where there are two projects in the solution with the same name, but which reside in different solution folders. The solution will generate a name by prepending as many of the parent folder names as necessary to make the name unique.
From vsshell80.idl:
HRESULT IVsSolution3::GetUniqueUINameOfProject(
[in] IVsHierarchy *pHierarchy,
[out] BSTR *pbstrUniqueName
);
Show: