Aracılığıyla paylaş


BuildDependencies.Parent Özellik

Hemen üst nesnesi alır bir BuildDependencies koleksiyonu.

Ad alanı:  EnvDTE
Derleme:  EnvDTE (EnvDTE.dll içinde)

Sözdizimi

'Bildirim
ReadOnly Property Parent As SolutionBuild
    Get
SolutionBuild Parent { get; }
property SolutionBuild^ Parent {
    SolutionBuild^ get ();
}
abstract Parent : SolutionBuild
function get Parent () : SolutionBuild

Özellik Değeri

Tür: EnvDTE.SolutionBuild
SolutionBuild nesnesi

Açıklamalar

Parent Özelliği döndürür hemen üst BuildDependencies koleksiyonu.

Örnekler

public void Example(DTE2 dte)
{

   try
   {
      BuildDependencies bldDepends;
      SolutionBuild slnBuild;

      // Get the BuildDependencies in open solution.
      bldDepends = dte.Solution.SolutionBuild.BuildDependencies;
      // Get the SolutionBuild.
      slnBuild = dte.Solution.SolutionBuild;
      // Show the number of Build Dependencies in open solution.
      MessageBox.Show("Number of dependencies: " + bldDepends.Count.ToString());
      // Prove that Build Dependencies parent object is a SolutionBuild object.
      if (bldDepends.Parent.GetType().Equals(slnBuild.GetType()))
         MessageBox.Show("Types match");
      else
         MessageBox.Show("Types do not match");
   }
   catch (Exception ex)
   {
      MessageBox.Show(ex.Message);
   }
}

.NET Framework Güvenliği

Ayrıca bkz.

Başvuru

BuildDependencies Arabirim

EnvDTE Ad Alanı

Diğer Kaynaklar

Nasıl Yapılır: derlemek ve otomasyon nesne modeli kod örnekleri çalıştırma