This documentation is archived and is not being maintained.

IVsSolution.GetProjectTypeGuid Method

Returns the project type, given a GUID.

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

int GetProjectTypeGuid (
	[InAttribute] uint dwReserved,
	[InAttribute] string pszMkProject,
	out Guid pguidProjectType
)
int GetProjectTypeGuid (
	/** @attribute InAttribute() */ UInt32 dwReserved, 
	/** @attribute InAttribute() */ String pszMkProject, 
	/** @attribute OutAttribute() */ /** @ref */ Guid pguidProjectType
)
JScript does not support passing value-type arguments by reference.

Parameters

dwReserved

[in] Reserved for future use.

pszMkProject

[in] Pointer to the path of the project.

pguidProjectType

[out, retval] Pointer to the project type.

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::GetProjectTypeGuid(
   [in] DWORD dwReserved,
   [in] LPCOLESTR pszMkProject,
   [out, retval] GUID *pguidProjectType
);
Show: