Aracılığıyla paylaş


IVsSolution.GetProjectOfGuid Yöntem (Guid, IVsHierarchy)

 

Proje benzersiz bir tanımlayıcı verilen çözümde 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 GetProjectOfGuid(
    [InAttribute] ref Guid rguidProjectID,
    out IVsHierarchy ppHierarchy
)
int GetProjectOfGuid(
    [InAttribute] Guid% rguidProjectID,
    [OutAttribute] IVsHierarchy^% ppHierarchy
)
abstract GetProjectOfGuid : 
        rguidProjectID:Guid byref *
        ppHierarchy:IVsHierarchy byref -> int
Function GetProjectOfGuid (
    <InAttribute> ByRef rguidProjectID As Guid,
    <OutAttribute> ByRef ppHierarchy As IVsHierarchy
) As Integer

Parametreler

  • rguidProjectID
    Type: System.Guid

    [in] Proje için benzersiz tanımlayıcı (GUID).

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::GetProjectOfGuid(
   [in] REFGUID rguidProjectID,
   [out] IVsHierarchy **ppHierarchy
);

Proje GUID ile tanımlanır. Bu yöntem IVsHierarchy arabirimi proje için belirtilen GUID'ye dayalı.

Ayrıca bkz.

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

Başa dön