共用方式為


IVsSolution2.GetUniqueNameOfProject(IVsHierarchy, String) Method

Definition

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

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

Parameters

pHierarchy
IVsHierarchy

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

pbstrUniqueName
String

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

Returns

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

Implements

Remarks

COM Signature

From vsshell.idl:

HRESULT IVsSolution2::GetUniqueNameOfProject(  
   [in] IVsHierarchy *pHierarchy,   
   [out] BSTR *pbstrUniqueName  
);  

Applies to