다음을 통해 공유


IVsSolution2.GetProjectFactory Method (UInt32, Guid%, String, IVsProjectFactory%)

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> ByRef pguidProjectType As Guid, _
    pszMkProject As String, _
    <OutAttribute> ByRef ppProjectFactory As IVsProjectFactory _
) As Integer
int GetProjectFactory(
    uint dwReserved,
    out Guid pguidProjectType,
    string pszMkProject,
    out IVsProjectFactory ppProjectFactory
)
int GetProjectFactory(
    [InAttribute] unsigned int dwReserved, 
    [InAttribute] [OutAttribute] 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: 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 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.

.NET Framework Security

See Also

Reference

IVsSolution2 Interface

GetProjectFactory Overload

Microsoft.VisualStudio.Shell.Interop Namespace