Note
Access to this page requires authorization. You can try signing in or changing directories.
Access to this page requires authorization. You can try changing directories.
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)
Syntax
'Declaration
Function GetUniqueNameOfProject ( _
pHierarchy As IVsHierarchy, _
<OutAttribute> ByRef pbstrUniqueName As String _
) As Integer
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
Parameters
- pHierarchy
Type: Microsoft.VisualStudio.Shell.Interop.IVsHierarchy
[in] Pointer to the IVsHierarchy interface of the project.
- 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.
Implements
IVsSolution.GetUniqueNameOfProject(IVsHierarchy, String%)
Remarks
COM Signature
From vsshell.idl:
HRESULT IVsSolution2::GetUniqueNameOfProject(
[in] IVsHierarchy *pHierarchy,
[out] BSTR *pbstrUniqueName
);
.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.