다음을 통해 공유


IVsSolution2.GetProjectFactory Method

Definition

Returns a project factory.

public:
 int GetProjectFactory(System::UInt32 dwReserved, [Runtime::InteropServices::Out] Guid % pguidProjectType, System::String ^ pszMkProject, [Runtime::InteropServices::Out] Microsoft::VisualStudio::Shell::Interop::IVsProjectFactory ^ % ppProjectFactory);
public int GetProjectFactory (uint dwReserved, out 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, ByRef 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 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.

Applies to