Was this page helpful?
Your feedback about this content is important. Let us know what you think.
Additional feedback?
1500 characters remaining
Export (0) Print
Expand All
Important This document may not represent best practices for current development, links to downloads and other resources may no longer be valid. Current recommended version can be found here.

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(
	string pszUniqueName,
	out 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.

COM Signature

From vsshell.idl:

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

Community Additions

ADD
Show:
© 2015 Microsoft