次の方法で共有


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)

Syntax

'宣言
Function GetProjectOfUniqueName ( _
    pszUniqueName As String, _
    <OutAttribute> ByRef ppHierarchy As IVsHierarchy _
) As Integer
'使用
Dim instance As IVsSolution
Dim pszUniqueName As String
Dim ppHierarchy As IVsHierarchy
Dim returnValue As Integer

returnValue = instance.GetProjectOfUniqueName(pszUniqueName, _
    ppHierarchy)
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: System.String
    [in] Unique name for the project.

Return Value

Type: System.Int32
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
);

.NET Framework Security

See Also

Reference

IVsSolution Interface

IVsSolution Members

Microsoft.VisualStudio.Shell.Interop Namespace