Compartilhar via


IVsSolution2.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)

Syntax

'Declaration
Function GetProjectOfUniqueName ( _
    pszUniqueName As String, _
    <OutAttribute> ByRef ppHierarchy As IVsHierarchy _
) As Integer
int GetProjectOfUniqueName(
    string pszUniqueName,
    out IVsHierarchy ppHierarchy
)
int GetProjectOfUniqueName(
    [InAttribute] String^ pszUniqueName, 
    [OutAttribute] IVsHierarchy^% ppHierarchy
)
abstract GetProjectOfUniqueName : 
        pszUniqueName:string * 
        ppHierarchy:IVsHierarchy byref -> int
function GetProjectOfUniqueName(
    pszUniqueName : String, 
    ppHierarchy : IVsHierarchy
) : int

Parameters

  • pszUniqueName
    Type: String

    [in] Unique name for the project.

Return Value

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

Remarks

COM Signature

From vsshell.idl:

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

.NET Framework Security

See Also

Reference

IVsSolution2 Interface

Microsoft.VisualStudio.Shell.Interop Namespace