IVsSolution::GetUniqueNameOfProject Method (IVsHierarchy^, String^)

 

Returns the unique name, given a project in the solution.

Namespace:   Microsoft.VisualStudio.Shell.Interop
Assembly:  Microsoft.VisualStudio.Shell.Interop (in Microsoft.VisualStudio.Shell.Interop.dll)

int GetUniqueNameOfProject(
	IVsHierarchy^ pHierarchy,
	[OutAttribute] String^% pbstrUniqueName
)

Parameters

pHierarchy
Type: Microsoft.VisualStudio.Shell.Interop::IVsHierarchy^

[in] Pointer to the IVsHierarchy interface of the project.

pbstrUniqueName
Type: System::String^

[out] Pointer to the unique name of the project.

Return Value

Type: System::Int32

If the method succeeds, it returns S_OK. If it fails, it returns an error code.

From vsshell.idl:

HRESULT IVsSolution::GetUniqueNameOfProject(
   [in] IVsHierarchy *pHierarchy,
   [out] BSTR *pbstrUniqueName
);
Return to top
Show: