Windows2.Parent Propriedade

Definição

Obtém o objeto pai imediato de uma Windows2 coleção.

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

Valor da propriedade

DTE

Um objeto DTE.

Implementações

Atributos

Exemplos

Este exemplo exibe o nome do arquivo do Parent objeto.

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);  
}  

Comentários

A Parent propriedade retorna o pai imediato para o objeto ou a coleção.

Aplica-se a