Windows2.Parent Eigenschaft

Definition

Ruft das unmittelbar übergeordnete Objekt einer Windows2-Auflistung ab.

public:
 property EnvDTE::DTE ^ Parent { EnvDTE::DTE ^ get(); };
public:
 property EnvDTE::DTE ^ Parent { EnvDTE::DTE ^ get(); };
[System.Runtime.InteropServices.DispId(302)]
public EnvDTE.DTE Parent { [System.Runtime.InteropServices.DispId(302)] get; }
[<System.Runtime.InteropServices.DispId(302)>]
[<get: System.Runtime.InteropServices.DispId(302)>]
member this.Parent : EnvDTE.DTE
Public ReadOnly Property Parent As DTE

Eigenschaftswert

DTE

Ein DTE-Objekt.

Implementiert

Attribute

Beispiele

In diesem Beispiel wird der Dateiname des Parent Objekts angezeigt.

Imports EnvDTE  
Imports EnvDTE80  
Sub GetParentFileName(ByVal dte As DTE2)  
    Dim win As Windows2  
    win = CType(_applicationObject.Windows, EnvDTE80.Windows2)  
    MsgBox("The file name of the Windows parent object is: " & vbCr _  
    & win.Parent.FileName)  
End Sub  
using EnvDTE;  
using EnvDTE80;  
using System.Windows.Forms;  
public void GetParentFileName(DTE2 dte)  
{  
    Windows2 win;  
    win = (EnvDTE80.Windows2)_applicationObject.Windows;  
    MessageBox.Show("The file name of the Windows parent object is: "   
+ "\n" + win.Parent.FileName);  
}  

Hinweise

Die- Parent Eigenschaft gibt das direkt übergeordnete Element des-Objekts oder der-Auflistung zurück.

Gilt für