Aracılığıyla paylaş


IVsSolution.GetProjectFactory Yöntem (UInt32, Guid , String, IVsProjectFactory)

 

Bir proje Üreteç döndürür.

Ad Alanı:   Microsoft.VisualStudio.Shell.Interop
Derleme:  Microsoft.VisualStudio.Shell.Interop (Microsoft.VisualStudio.Shell.Interop.dll içinde)

Sözdizimi

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

Parametreler

  • dwReserved
    Type: System.UInt32

    [in] Gelecekte kullanılmak üzere ayrılmış.

  • pguidProjectType
    Type: System.Guid[]

    ' de [out] Proje türü benzersiz tanımlayıcı (GUID). Bu parametre olabilir null için bir değer belirtilmezse pszMkProject.

  • pszMkProject
    Type: System.String

    [in] Proje yolu. Bu parametre olabilir null için bir değer belirtilmezse pguidProjectType.

Dönüş Değeri

Type: System.Int32

Yöntem başarılı olursa, döndürür S_OK. Başarısız olursa, bir hata kodu döndürür.

Notlar

COM imza

Vsshell.idl:

HRESULT IVsSolution::GetProjectFactory(
   [in] DWORD dwReserved,
   [in, out] GUID *pguidProjectType,
   [in] LPCOLESTR pszMkProject,
   [out, retval] IVsProjectFactory **ppProjectFactory
);

Proje başvurusu projenin üretecinden belirlemek için bu yöntemi kullanın.

Ayrıca bkz.

IVsSolution Arabirim
Microsoft.VisualStudio.Shell.Interop Ad Alanı

Başa dön