BuildDependencies.Parent Özellik
Tanım
Önemli
Bazı bilgiler ürünün ön sürümüyle ilgilidir ve sürüm öncesinde önemli değişiklikler yapılmış olabilir. Burada verilen bilgilerle ilgili olarak Microsoft açık veya zımni hiçbir garanti vermez.
Bir koleksiyonun en çabuk üst nesnesini alır BuildDependencies .
public:
property EnvDTE::SolutionBuild ^ Parent { EnvDTE::SolutionBuild ^ get(); };
public:
property EnvDTE::SolutionBuild ^ Parent { EnvDTE::SolutionBuild ^ get(); };
[System.Runtime.InteropServices.DispId(2)]
public EnvDTE.SolutionBuild Parent { [System.Runtime.InteropServices.DispId(2)] get; }
[<System.Runtime.InteropServices.DispId(2)>]
[<get: System.Runtime.InteropServices.DispId(2)>]
member this.Parent : EnvDTE.SolutionBuild
Public ReadOnly Property Parent As SolutionBuild
Özellik Değeri
Bir SolutionBuild nesnesi.
- Öznitelikler
Ö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);
}
}
Açıklamalar
ParentÖzelliği, koleksiyona en hızlı üst öğeyi döndürür BuildDependencies .