IVsSolution2::GetProjectFactory Method (UInt32, Guid, String^, IVsProjectFactory^)
Visual Studio 2015
Returns a project factory.
Assembly: Microsoft.VisualStudio.Shell.Interop (in Microsoft.VisualStudio.Shell.Interop.dll)
int GetProjectFactory( unsigned int dwReserved, Guid% pguidProjectType, String^ pszMkProject, [OutAttribute] 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::Int32If the method succeeds, it returns S_OK. If it fails, it returns an error code.
From vsshell.idl:
HRESULT IVsSolution2::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.
Show: