This documentation is archived and is not being maintained.

IVsSolution.GetProjectOfUniqueName Method

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 (
	[InAttribute] string pszUniqueName,
	out IVsHierarchy ppHierarchy
)
int GetProjectOfUniqueName (
	/** @attribute InAttribute() */ String pszUniqueName, 
	/** @attribute OutAttribute() */ /** @ref */ IVsHierarchy ppHierarchy
)
JScript does not support passing value-type arguments by reference.

Parameters

pszUniqueName

[in] Unique name for the project.

ppHierarchy

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

Return Value

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

COM Signature

From vsshell.idl:

HRESULT IVsSolution::GetProjectOfUniqueName(
   [in] LPCOLESTR pszUniqueName,
   [out] IVsHierarchy **ppHierarchy
);
Show: