次の方法で共有


IVsSolution.GetProjectOfUniqueName(String, IVsHierarchy) Method

Definition

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

public:
 int GetProjectOfUniqueName(System::String ^ pszUniqueName, [Runtime::InteropServices::Out] Microsoft::VisualStudio::Shell::Interop::IVsHierarchy ^ % ppHierarchy);
public:
 int GetProjectOfUniqueName(Platform::String ^ pszUniqueName, [Runtime::InteropServices::Out] Microsoft::VisualStudio::Shell::Interop::IVsHierarchy ^ &  ppHierarchy);
int GetProjectOfUniqueName(std::wstring const & pszUniqueName, [Runtime::InteropServices::Out] Microsoft::VisualStudio::Shell::Interop::IVsHierarchy const & & ppHierarchy);
public int GetProjectOfUniqueName (string pszUniqueName, out Microsoft.VisualStudio.Shell.Interop.IVsHierarchy ppHierarchy);
abstract member GetProjectOfUniqueName : string * IVsHierarchy -> int
Public Function GetProjectOfUniqueName (pszUniqueName As String, ByRef ppHierarchy As IVsHierarchy) As Integer

Parameters

pszUniqueName
String

[in] Unique name for the project.

ppHierarchy
IVsHierarchy

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

Returns

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

Remarks

COM Signature

From vsshell.idl:

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

Applies to