Export (0) Print
Expand All

IVsSolution.GetGuidOfProject Method

Returns the unique identifier for a project in the solution.

Namespace: Microsoft.VisualStudio.Shell.Interop
Assembly: Microsoft.VisualStudio.Shell.Interop (in microsoft.visualstudio.shell.interop.dll)

int GetGuidOfProject (
	[InAttribute] IVsHierarchy pHierarchy,
	out Guid pguidProjectID
int GetGuidOfProject (
	/** @attribute InAttribute() */ IVsHierarchy pHierarchy, 
	/** @attribute OutAttribute() */ /** @ref */ Guid pguidProjectID
JScript does not support passing value-type arguments by reference.



[in] Pointer to the IVsHierarchy interface of the project for which the identifier is requested.


[out] Pointer to the unique identifier of the project.

Return Value

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

COM Signature

From vsshell.idl:

HRESULT IVsSolution::GetGuidOfProject(
   [in] IVsHierarchy *pHierarchy,
   [out] GUID *pguidProjectID

Based on a project, this method returns the GUID for a project in a solution.

Community Additions

© 2014 Microsoft