Windows2.DTE Özellik

Tanım

Üst düzey genişletilebilirlik nesnesini alır.

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

Özellik Değeri

DTE

Bir DTE nesnesi.

Uygulamalar

DTE
Öznitelikler

Örnekler

Bu örnek, DTE Windows2 IDE 'nin adını göstermek için nesnesine bir nesnesi üzerinden erişir.

Imports EnvDTE  
Imports EnvDTE80  
Sub ReachDTE(ByVal dte As DTE2)  
    Dim win As Windows2  
    win = CType(_applicationObject.Windows, EnvDTE80.Windows2)  
    MsgBox("The DTE name, reached through the Window2 object, is: " _  
 & vbCr & win.DTE.Name)  
End Sub  
using EnvDTE;  
using EnvDTE80;  
using System.Windows.Forms;  
public void ReachDTE(DTE2 dte)  
{  
    Windows2 win;  
    win = (EnvDTE80.Windows2)_applicationObject.Windows;  
    MessageBox.Show("The DTE name, reached through the Window2 object,  
 is: " + "\n" + win.DTE.Name);  
}  

Açıklamalar

' De Visual Studio , DTE nesnesi, diğer nesne modellerinin genellikle "uygulama" çağrısını yaparken otomasyon modelinin köküdür.

Şunlara uygulanır