Was this page helpful?
Your feedback about this content is important. Let us know what you think.
Additional feedback?
1500 characters remaining
Export (0) Print
Expand All

IVsSolution.GetProjectFactory Method

Returns a project factory.

Namespace:  Microsoft.VisualStudio.Shell.Interop
Assembly:  Microsoft.VisualStudio.Shell.Interop (in Microsoft.VisualStudio.Shell.Interop.dll)

int GetProjectFactory(
	uint dwReserved,
	Guid[] pguidProjectType,
	string pszMkProject,
	out IVsProjectFactory ppProjectFactory


Type: System.UInt32
[in] Reserved for future use.
Type: System.Guid[]
[in, out] Unique identifier (GUID) of the project type. This parameter can be null if a value is specified for pszMkProject.
Type: System.String
[in] Path to the project. This parameter can be null if a value is specified for pguidProjectType.
Type: Microsoft.VisualStudio.Shell.Interop.IVsProjectFactory
[out, retval] Pointer to the IVsProjectFactory interface of the requested project factory.

Return Value

Type: System.Int32
If the method succeeds, it returns S_OK. If it fails, it returns an error code.

COM Signature

From vsshell.idl:

HRESULT IVsSolution::GetProjectFactory(
   [in] DWORD dwReserved,
   [in, out] GUID *pguidProjectType,
   [in] LPCOLESTR pszMkProject,
   [out, retval] IVsProjectFactory **ppProjectFactory

Use this method to determine the project factory from the project reference.

Community Additions

© 2015 Microsoft