Compartilhar via


IVsSolution.GetProjectFactory Method

Definition

Returns a project factory.

public:
 int GetProjectFactory(System::UInt32 dwReserved, cli::array <Guid> ^ pguidProjectType, System::String ^ pszMkProject, [Runtime::InteropServices::Out] Microsoft::VisualStudio::Shell::Interop::IVsProjectFactory ^ % ppProjectFactory);
public int GetProjectFactory (uint dwReserved, Guid[] pguidProjectType, string pszMkProject, out Microsoft.VisualStudio.Shell.Interop.IVsProjectFactory ppProjectFactory);
abstract member GetProjectFactory : uint32 * Guid[] * string * IVsProjectFactory -> int
Public Function GetProjectFactory (dwReserved As UInteger, pguidProjectType As Guid(), pszMkProject As String, ByRef ppProjectFactory As IVsProjectFactory) As Integer

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:

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