IVsSolution2::GetProjectOfUniqueName Method (String^, IVsHierarchy^)

 

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

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

int GetProjectOfUniqueName(
	String^ pszUniqueName,
	[OutAttribute] IVsHierarchy^% ppHierarchy
)

Parameters

pszUniqueName
Type: System::String^

[in] Unique name for the project.

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

[out] Pointer to the IVsHierarchy interface of the project referred to by pszUniqueName.

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 IVsSolution2::GetProjectOfUniqueName(
   [in] LPCOLESTR pszUniqueName, 
   [out] IVsHierarchy **ppHierarchy
);
Return to top
Show: