IVsSolution.GetUniqueNameOfProject Method

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

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


Function GetUniqueNameOfProject ( _
    pHierarchy As IVsHierarchy, _
    <OutAttribute> ByRef pbstrUniqueName As String _
) As Integer
‘사용 방법
Dim instance As IVsSolution
Dim pHierarchy As IVsHierarchy
Dim pbstrUniqueName As String
Dim returnValue As Integer

returnValue = instance.GetUniqueNameOfProject(pHierarchy, _
int GetUniqueNameOfProject(
    IVsHierarchy pHierarchy,
    out string pbstrUniqueName
int GetUniqueNameOfProject(
    [InAttribute] IVsHierarchy^ pHierarchy, 
    [OutAttribute] String^% pbstrUniqueName
abstract GetUniqueNameOfProject : 
        pHierarchy:IVsHierarchy * 
        pbstrUniqueName:string byref -> int 
function GetUniqueNameOfProject(
    pHierarchy : IVsHierarchy, 
    pbstrUniqueName : String
) : int


  • pbstrUniqueName
    Type: System.String%
    [out] Pointer to the unique name of the project.

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::GetUniqueNameOfProject(
   [in] IVsHierarchy *pHierarchy,
   [out] BSTR *pbstrUniqueName

.NET Framework Security

See Also


IVsSolution Interface

IVsSolution Members

Microsoft.VisualStudio.Shell.Interop Namespace