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
'Declaration
Function GetProjectOfUniqueName ( _
pszUniqueName As String, _
<OutAttribute> ByRef ppHierarchy As IVsHierarchy _
) As Integer
'Usage
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.
- ppHierarchy
Type: Microsoft.VisualStudio.Shell.Interop.IVsHierarchy%
[out] Pointer to the IVsHierarchy interface of the project referred to by pszUniqueName.
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
- Full trust for the immediate caller. This member cannot be used by partially trusted code. For more information, see Using Libraries from Partially Trusted Code.