다음을 통해 공유


IVsSolution.GetProjectFactory Method

Returns a project factory.

Namespace:  Microsoft.VisualStudio.Shell.Interop
Assembly:  Microsoft.VisualStudio.Shell.Interop (in Microsoft.VisualStudio.Shell.Interop.dll)

Syntax

'Declaration
Function GetProjectFactory ( _
    dwReserved As UInteger, _
    <OutAttribute> pguidProjectType As Guid(), _
    pszMkProject As String, _
    <OutAttribute> ByRef ppProjectFactory As IVsProjectFactory _
) As Integer
int GetProjectFactory(
    uint dwReserved,
    Guid[] pguidProjectType,
    string pszMkProject,
    out IVsProjectFactory ppProjectFactory
)
int GetProjectFactory(
    [InAttribute] unsigned int dwReserved, 
    [InAttribute] [OutAttribute] array<Guid>^ pguidProjectType, 
    [InAttribute] String^ pszMkProject, 
    [OutAttribute] IVsProjectFactory^% ppProjectFactory
)
abstract GetProjectFactory : 
        dwReserved:uint32 * 
        pguidProjectType:Guid[] byref * 
        pszMkProject:string * 
        ppProjectFactory:IVsProjectFactory byref -> int
function GetProjectFactory(
    dwReserved : uint, 
    pguidProjectType : Guid[], 
    pszMkProject : String, 
    ppProjectFactory : IVsProjectFactory
) : int

Parameters

  • dwReserved
    Type: UInt32

    [in] Reserved for future use.

  • pguidProjectType
    Type: array<Guid[]

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

  • pszMkProject
    Type: String

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

Return Value

Type: Int32
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.

.NET Framework Security

See Also

Reference

IVsSolution Interface

Microsoft.VisualStudio.Shell.Interop Namespace