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
)

Parameters

dwReserved
Type: System.UInt32
[in] Reserved for future use.
pguidProjectType
Type: System.Guid[]
[in, out] Unique identifier (GUID) of the project type. This parameter can be null if a value is specified for pszMkProject.
pszMkProject
Type: System.String
[in] Path to the project. This parameter can be null if a value is specified for pguidProjectType.
ppProjectFactory
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

ADD
Show:
© 2014 Microsoft