StackFrames.DTE Propriedade

Definição

Obtém o objeto de extensibilidade de nível superior.

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

Valor da propriedade

DTE

Um objeto DTE.

Atributos

Exemplos

O exemplo a seguir demonstra como usar a DTE propriedade.

public static void StackFramesDTE(DTE dte)  
{  
    EnvDTE.StackFrames stackFrames = dte.Debugger.CurrentThread.StackFrames;  
    MessageBox.Show("\nEdition of the environment: " +   
                    stackFrames.DTE.Edition, "Stack Frames DTE Property Test");  
}  
Shared Sub StackFramesDTE(ByRef dte As EnvDTE.DTE)  
    Dim stackFrames As EnvDTE.StackFrames = dte.Debugger.CurrentThread.StackFrames  
    MessageBox.Show("Edition of the environment: " + _  
                    stackFrames.DTE.Edition, "Stack Frame Test - DTE Property")  
End Sub  

Comentários

No Visual Studio , o DTE é a raiz do modelo de automação, que outros modelos de objeto geralmente chamam de "aplicativo".

Aplica-se a