Documents.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 Documents .
public:
property EnvDTE::DTE ^ Parent { EnvDTE::DTE ^ get(); };
public:
property EnvDTE::DTE ^ Parent { EnvDTE::DTE ^ get(); };
[System.Runtime.InteropServices.DispId(101)]
public EnvDTE.DTE Parent { [System.Runtime.InteropServices.DispId(101)] get; }
[<System.Runtime.InteropServices.DispId(101)>]
[<get: System.Runtime.InteropServices.DispId(101)>]
member this.Parent : EnvDTE.DTE
Public ReadOnly Property Parent As DTE
Özellik Değeri
Bir DTE nesnesi.
- Öznitelikler
Örnekler
public void Example(DTE2 dte)
{
try
{
// Run this code after opening a project with at least one document.
Documents docs;
// Return the documents collection in the current application instance.
docs = dte.Documents;
// Show the number of open documents in the current application.
MessageBox.Show(docs.Count.ToString());
// Show the parent object of the current docs collection.
MessageBox.Show(docs.Parent.FullName);
}
catch (Exception ex)
{
MessageBox.Show(ex.Message);
}
}
Açıklamalar
ParentÖzelliği nesne veya koleksiyona hemen üst öğeyi döndürür.