IVsSolution.GetProjectFactory Method

Definition

Returns a project factory.

C++
public:
 int GetProjectFactory(System::UInt32 dwReserved, cli::array <Guid> ^ pguidProjectType, System::String ^ pszMkProject, [Runtime::InteropServices::Out] Microsoft::VisualStudio::Shell::Interop::IVsProjectFactory ^ % ppProjectFactory);

Parameters

dwReserved
UInt32

[in] Reserved for future use.

pguidProjectType
Guid[]

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

pszMkProject
String

[in] Path to the project. This parameter can be null if a value is specified for pguidProjectType.

ppProjectFactory
IVsProjectFactory

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

Returns

If the method succeeds, it returns S_OK. If it fails, it returns an error code.

Remarks

COM Signature

From vsshell.idl:

cpp#
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.

Applies to

製品 バージョン
Visual Studio SDK 2015, 2017, 2019, 2022