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 (
	[InAttribute] uint dwReserved,
	[InAttribute] [OutAttribute] Guid[] pguidProjectType,
	[InAttribute] string pszMkProject,
	out IVsProjectFactory ppProjectFactory
)
int GetProjectFactory (
	/** @attribute InAttribute() */ UInt32 dwReserved, 
	/** @attribute InAttribute() */ /** @attribute OutAttribute() */ Guid[] pguidProjectType, 
	/** @attribute InAttribute() */ String pszMkProject, 
	/** @attribute OutAttribute() */ /** @ref */ IVsProjectFactory ppProjectFactory
)
JScript does not support passing value-type arguments by reference.

Parameters

dwReserved

[in] Reserved for future use.

pguidProjectType

[in, out] Unique identifier (GUID) of the project type. This parameter can be a null reference (Nothing in Visual Basic) if a value is specified for pszMkProject.

pszMkProject

[in] Path to the project. This parameter can be a null reference (Nothing in Visual Basic) if a value is specified for pguidProjectType.

ppProjectFactory

[out, retval] Pointer to the IVsProjectFactory interface of the requested project factory.

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::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